mirror of https://github.com/django/django.git
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:
parent
a841530a13
commit
eaed1a7ddb
|
@ -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 = {}
|
||||||
|
|
Loading…
Reference in New Issue