diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 784ccda159..0a5059a9c2 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -840,6 +840,11 @@ class MultiWidget(Widget): obj.widgets = copy.deepcopy(self.widgets) return obj + @property + def needs_multipart_form(self): + return any(w.needs_multipart_form for w in self.widgets) + + class SplitDateTimeWidget(MultiWidget): """ A Widget that splits datetime input into two <input type="text"> boxes. |
