#20850: MultiWidget does not respect Widget.needs_multipart_form -------------------------------+-------------------- Reporter: tim_heap | Owner: nobody Type: Bug | Status: new Component: Uncategorized | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- If a widget that is wrapped with a MultiWidget has needs_multipart_form set, the MultiWidget does not reflect that. This prevents automatically setting the form enctype correctly using the Form.is_multipart method.
The ClearableFileField from [https://pypi.python.org/pypi/django-form- utils django-form-utils] is an example of such a widget. It combines a FileField with a Checkbox, where the Checkbox allows clearing/removing an already selected file from the form. While this particular widget is now not needed as it is included in Django in an alternate implementation, this bug still exists. -- Ticket URL: <https://code.djangoproject.com/ticket/20850> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.6a8d99954c04022b3b8df5e741128eb0%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.