Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Panel DeprecationWarning - The "default.html" templates for forms and formsets will be removed #1813

Open
bluetech opened this issue Jul 9, 2023 · 2 comments

Comments

@bluetech
Copy link

bluetech commented Jul 9, 2023

When I open the SQL Panel on Django 4.2, django-debug-toolbar 4.1, I get the following warning:

django.utils.deprecation.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

I tried to narrow down a bit what's causing it using pdb, but I only managed to see that the self is SignedDataForm, not much more.

@living180
Copy link
Contributor

I looked at this awhile back, and AFAICT, the warning is actually generated by an internal compatibility shim in Django. It should go away once the compatibility shim is removed. Although the Debug Toolbar could be updated to avoid the warning, any changes would be unnecessary once targeting Django 5.0. Thus I decided that it wasn't worth code churn on the Debug Toolbar end. If anyone would like more details, let me know, and I can try to gather them together in the next few days.

@bluetech
Copy link
Author

Thank you, makes sense. I silenced the warning for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants