Return True if the form needs to be multipart-encoded, i.e. it has FileInput, or False otherwise.
(self)
| 391 | return media |
| 392 | |
| 393 | def is_multipart(self): |
| 394 | """ |
| 395 | Return True if the form needs to be multipart-encoded, i.e. it has |
| 396 | FileInput, or False otherwise. |
| 397 | """ |
| 398 | return any(field.widget.needs_multipart_form for field in self.fields.values()) |
| 399 | |
| 400 | def hidden_fields(self): |
| 401 | """ |