﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34531	Rendering form throws deprecation warning	Petr Dlouhý	nobody	"When I execute following code:
{{{
# deprecation.py
from django.forms import Form
from django.template import Template, Context
t = Template(""{{ form }}"")
c = Context({""form"": Form})
t.render(c)
}}}
with
{{{
python -Wall -W warning::DeprecationWarning ./manage.py shell < deprecation.py
}}}

I git following error:
{{{
.../lib/python3.11/site-packages/django/template/base.py:1047: RemovedInDjango50Warning: The ""default.html"" templates for forms and formsets will be removed. These were proxies to the equivalent ""table.html"" templates, but the new ""div.html"" templates will be the default from Django 5.0. Transitional renderers are provided to allow you to opt-in to the new output style now. See https://docs.djangoproject.com/en/4.2/releases/4.1/ for more details
  value = str(value)
}}}

I think this is incorrect behavior, since the deprecated code is contained only in Django (django/forms/renders.py line 21) and not in the users code.
This breaks automated tests which should ensure future Django compatibility. It is possible to fix them only by some hacks.

Django version: 4.2
Python version: 3.11.3"	Uncategorized	closed	Forms	4.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
