MCPcopy
hub / github.com/django/django / is_multipart

Method is_multipart

django/forms/forms.py:393–398  ·  view source on GitHub ↗

Return True if the form needs to be multipart-encoded, i.e. it has FileInput, or False otherwise.

(self)

Source from the content-addressed store, hash-verified

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 """

Calls 1

valuesMethod · 0.45