summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2022-08-02 09:34:18 +0200
committerCarlton Gibson <carlton@noumenal.es>2022-08-02 10:30:09 +0200
commit89e695a69b16b8c0e720169b3ca4852cfd0c485f (patch)
tree2ee0fb82f06244f9e13db4af0fbff8dfcc7eceea /django/forms
parent44c24bf02835323d5418512ebe8e76166739ebf8 (diff)
Fixed #33876, Refs #32229 -- Made management forms render with div.html template.
Thanks to Claude Paroz for the report.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/formsets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py
index 3adbc6979a..57676428ff 100644
--- a/django/forms/formsets.py
+++ b/django/forms/formsets.py
@@ -32,6 +32,8 @@ class ManagementForm(Form):
as well.
"""
+ template_name = "django/forms/div.html" # RemovedInDjango50Warning.
+
TOTAL_FORMS = IntegerField(widget=HiddenInput)
INITIAL_FORMS = IntegerField(widget=HiddenInput)
# MIN_NUM_FORM_COUNT and MAX_NUM_FORM_COUNT are output with the rest of the