summaryrefslogtreecommitdiff
path: root/django/forms/renderers.py
AgeCommit message (Collapse)Author
2025-01-15Refs #32339 -- Removed transitional form renderers per deprecation timeline.Sarah Boyce
2025-01-15Fixed #35521 -- Allowed overriding BoundField class on fields, forms and ↵Matthias Kestenholz
renderers. Thank you Sarah Boyce, Carlton Gibson, Tim Schilling and Adam Johnson for reviews. Co-authored-by: Christophe Henry <contact@c-henry.fr> Co-authored-by: David Smith <smithdc@gmail.com> Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>
2024-08-28Refs #32339 -- Adjusted deprecation warning stacklevel in transitional form ↵Simon Charette
renderers.
2023-05-17Refs #32339 -- Fixed super() call in deprecated renderers.Carlton Gibson
Missing function call `()` leads to: TypeError: descriptor '__init__' of 'super' object needs an argument Regression in b209518089131c6b4afd18b1d9c320ba3521c5ab.
2023-03-24Fixed #34077 -- Added form field rendering.David Smith
2023-01-18Refs #32339 -- Deprecated transitional form renderers.Mariusz Felisiak
2023-01-17Refs #32339 -- Changed default form and formset rendering style to div-based.Mariusz Felisiak
Per deprecation timeline. This also removes "django/forms/default.html" and "django/forms/formsets/default.html" templates.
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-04-27Refs #32339 -- Allowed renderer to specify default form and formset templates.Carlton Gibson
Co-authored-by: David Smith <smithdc@gmail.com>
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-27Refs #32355 -- Used @functools.lru_cache as a straight decorator.Mariusz Felisiak
2021-04-01Fixed #32316 -- Deferred accessing __file__.William Schwartz
Deferred accessing the module-global variable __file__ because the Python import API does not guarantee it always exists—in particular, it does not exist in certain "frozen" environments. The following changes advanced this goal. Thanks to Carlton Gibson, Tom Forbes, Mariusz Felisiak, and Shreyas Ravi for review and feedback.
2020-09-22Made jinja2 import lazy in django.forms.Adam Johnson
Benchmarking shows that about 22% of the startup time for a simple django project was spent importing jinja2, which the project doesn't use. It's reasonable to make this import lazy. This will only affect projects where jinja2 is installed but not used, but given the prevalence of jinja2 that's likely to be many environments (e.g. if Ansible is installed, or the global Python install is used).
2019-11-07Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne
2018-04-19Ref #23919 -- Replaced some os.path usage with pathlib.Path.Tom
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Stopped using django.utils.lru_cache().Aymeric Augustin
2016-12-27Fixed #15667 -- Added template-based widget rendering.Preston Timmons
Thanks Carl Meyer and Tim Graham for contributing to the patch.