#33876: "default.html" deprecation warning raised for ManagementForm's
--------------------------------------+------------------------------------
     Reporter:  Claude Paroz          |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Forms                 |                  Version:  4.1
     Severity:  Release blocker       |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

 * cc: David Smith, Carlton Gibson (added)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


Comment:

 Thanks for the report. I think it's worth changing. As far as I'm aware,
 it's quite often that management form is the only one that users render
 with `{{ form }}`. It should also be quite easy to workaround:
 {{{#!diff
 diff --git a/django/forms/formsets.py b/django/forms/formsets.py
 index 3adbc6979a..2bea2987be 100644
 --- a/django/forms/formsets.py
 +++ b/django/forms/formsets.py
 @@ -31,6 +31,7 @@ class ManagementForm(Form):
      new forms via JavaScript, you should increment the count field of
 this form
      as well.
      """
 +    template_name = "django/forms/div.html"  # RemovedInDjango50Warning.

      TOTAL_FORMS = IntegerField(widget=HiddenInput)
      INITIAL_FORMS = IntegerField(widget=HiddenInput)

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33876#comment:1>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701825895a60c-a1363eaa-a095-408e-b15b-1cf12fecedb4-000000%40eu-central-1.amazonses.com.

Reply via email to