1
0
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:
Claude Paroz
2012-09-15 21:39:08 +02:00
parent b1fb6f4820
commit c7f44ae085
2 changed files with 10 additions and 2 deletions

View File

@@ -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':