Code

Opened 7 years ago

Closed 7 years ago

#5387 closed (fixed)

method Form.is_multipart

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: murkt
Component: Forms Version: master
Severity: Keywords: newforms, is_multipart, sprintsept14
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I would like to write this in a general template:

{% if form.is_multipart %}
{% else %} {% endif %}

I can do it with the attached patch.

Attachments (2)

form-is-multipart.diff (1.2 KB) - added by Petr Marhoun <petr.marhoun@…> 7 years ago.
form-is-multipart-test-docs.diff (2.9 KB) - added by murkt 7 years ago.
Patch with tests and documentation for rev 6268.

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

comment:1 Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Again:

{% if form.is_multipart %}
    <form action="." method="post" enctype="multipart/form-data">
{% else %}
    <form action="." method="post">
{% endif %}

comment:2 Changed 7 years ago by flother

  • Needs documentation set

comment:3 Changed 7 years ago by russellm

  • Needs tests set
  • Triage Stage changed from Unreviewed to Accepted

comment:4 Changed 7 years ago by murkt

  • Owner changed from nobody to murkt
  • Status changed from new to assigned

Changed 7 years ago by murkt

Patch with tests and documentation for rev 6268.

comment:5 Changed 7 years ago by murkt

  • Keywords is_multipart, sprintsept14 added; is_multipart removed
  • Needs documentation unset
  • Needs tests unset

comment:6 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6273]) Fixed #5387 -- Added is_multipart method to forms. Original patch from Petr Marhhoun. Tests and documentation from Murkt.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.