diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-12-04 12:57:46 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-12-04 12:57:46 +0000 |
| commit | eaed1a7ddba136f07a5128cae96f6e667f4cb21b (patch) | |
| tree | ce049e5ab823e92f4477fae198ea28d4c99190dc | |
| parent | a841530a13cdd409828dcfc9ccd10711b1f46997 (diff) | |
limit packages in javascript_catalog to settings.INSTALLED_APPS and 'django.conf'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/views/i18n.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/views/i18n.py b/django/views/i18n.py index 7b67cd2417..a0c890b54b 100644 --- a/django/views/i18n.py +++ b/django/views/i18n.py @@ -128,6 +128,7 @@ def javascript_catalog(request, domain='djangojs', packages=None): packages = ['django.conf'] if type(packages) in (str, unicode): packages = packages.split('+') + packages = [p for p in packages if p == 'django.conf' or p in settings.INSTALLED_APPS] default_locale = to_locale(settings.LANGUAGE_CODE) locale = to_locale(get_language()) t = {} |
