Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit eaed1a7ddba136f07a5128cae96f6e667f4cb21b 1 parent a841530
Georg Bauer authored
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 = {}
Please sign in to comment.
Something went wrong with that request. Please try again.