mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #17948 -- Isolated auth tests from custom template loaders
Thanks andrey@kostenko.name for the report.
This commit is contained in:
@@ -51,6 +51,13 @@ def clear_context_processors_cache(**kwargs):
|
||||
context._standard_context_processors = None
|
||||
|
||||
|
||||
@receiver(setting_changed)
|
||||
def clear_template_loaders_cache(**kwargs):
|
||||
if kwargs['setting'] == 'TEMPLATE_LOADERS':
|
||||
from django.template import loader
|
||||
loader.template_source_loaders = None
|
||||
|
||||
|
||||
@receiver(setting_changed)
|
||||
def clear_serializers_cache(**kwargs):
|
||||
if kwargs['setting'] == 'SERIALIZATION_MODULES':
|
||||
|
||||
Reference in New Issue
Block a user