Browse files

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
  • Loading branch information...
1 parent a841530 commit eaed1a7ddba136f07a5128cae96f6e667f4cb21b Georg Bauer committed Dec 4, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/views/i18n.py
View
1 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 = {}

0 comments on commit eaed1a7

Please sign in to comment.