diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 14:17:47 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-27 22:01:22 +0100 |
| commit | 3145ae06beed2f8c679db5d7a06907dd2a03d138 (patch) | |
| tree | ba3208313a17c91a61973cc94651ac9582101577 | |
| parent | 6758a9c0fc34dc9944895b98045d2b26c8147ea2 (diff) | |
Minor cleanup.
| -rw-r--r-- | django/test/signals.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/django/test/signals.py b/django/test/signals.py index d5b98081b9..66b96a4eb1 100644 --- a/django/test/signals.py +++ b/django/test/signals.py @@ -33,15 +33,15 @@ def update_installed_apps(**kwargs): # Rebuild any AppDirectoriesFinder instance. from django.contrib.staticfiles.finders import get_finder get_finder.cache_clear() - # Rebuild app_template_dirs cache. - from django.template.loaders import app_directories as mod - mod.app_template_dirs = mod.calculate_app_template_dirs() - # Rebuild templatetags module cache. - from django.template import base - base.templatetags_modules[:] = [] # Rebuild management commands cache from django.core.management import get_commands get_commands.cache_clear() + # Rebuild templatetags module cache. + from django.template import base as mod + mod.templatetags_modules = [] + # Rebuild app_template_dirs cache. + from django.template.loaders import app_directories as mod + mod.app_template_dirs = mod.calculate_app_template_dirs() @receiver(setting_changed) |
