Opened 9 years ago

Closed 9 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@…> 9 years ago.
form-is-multipart-test-docs.diff (2.9 KB) - added by murkt 9 years ago.
Patch with tests and documentation for rev 6268.

Download all attachments as: .zip

Change History (8)

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

Attachment: form-is-multipart.diff added

comment:1 Changed 9 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 9 years ago by flother

Needs documentation: set

comment:3 Changed 9 years ago by Russell Keith-Magee

Needs tests: set
Triage Stage: UnreviewedAccepted

comment:4 Changed 9 years ago by murkt

Owner: changed from nobody to murkt
Status: newassigned

Changed 9 years ago by murkt

Patch with tests and documentation for rev 6268.

comment:5 Changed 9 years ago by murkt

Keywords: sprintsept14 added
Needs documentation: unset
Needs tests: unset

comment:6 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.
Back to Top