Changes between Version 1 and Version 2 of Ticket #34692
- Timestamp:
- Jul 3, 2023, 1:55:49 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34692 – Description
v1 v2 17 17 # this code is new: reset the form renderer's template cache as well 18 18 from django.forms.renderers import get_default_renderer 19 for loader in get_default_renderer().engine.engine.template_loaders: 20 loader.reset() 19 backend = get_default_renderer().engine 20 if isinstance(backend, DjangoTemplates): 21 for loader in backend.engine.template_loaders: 22 loader.reset() 21 23 }}}