1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[4.1.x] Fixed #33876, Refs #32229 -- Made management forms render with div.html template.

Thanks to Claude Paroz for the report.

Backport of 89e695a69b from main
This commit is contained in:
Carlton Gibson
2022-08-02 09:34:18 +02:00
parent bdff4d5b3a
commit 8aab03ab55
2 changed files with 13 additions and 0 deletions

View File

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