Changes between Version 1 and Version 2 of Ticket #34692


Ignore:
Timestamp:
Jul 3, 2023, 1:55:49 PM (16 months ago)
Author:
Andrew
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34692 – Description

    v1 v2  
    1717    # this code is new: reset the form renderer's template cache as well
    1818    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()
    2123}}}
Back to Top