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
This commit is contained in:
Georg Bauer 2005-12-04 12:57:46 +00:00
parent a841530a13
commit eaed1a7ddb
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ def javascript_catalog(request, domain='djangojs', packages=None):
packages = ['django.conf'] packages = ['django.conf']
if type(packages) in (str, unicode): if type(packages) in (str, unicode):
packages = packages.split('+') 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) default_locale = to_locale(settings.LANGUAGE_CODE)
locale = to_locale(get_language()) locale = to_locale(get_language())
t = {} t = {}