Explorar el Código

Override django js translation

Denis K hace 9 años
padre
commit
c9cd58e275
Se han modificado 3 ficheros con 1 adiciones y 5 borrados
  1. 0 1
      jet/templates/admin/change_form.html
  2. 0 3
      jet/templates/admin/change_list.html
  3. 1 1
      jet/urls.py

+ 0 - 1
jet/templates/admin/change_form.html

@@ -3,7 +3,6 @@
 
 {% block extrahead %}
     {{ block.super }}
-    <script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
     {{ media }}
 {% endblock %}
 

+ 0 - 3
jet/templates/admin/change_list.html

@@ -5,9 +5,6 @@
 
 {% block extrastyle %}
     {{ block.super }}
-    {% if cl.formset or action_form %}
-    <script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
-    {% endif %}
     {{ media.css }}
 {% endblock %}
 

+ 1 - 1
jet/urls.py

@@ -27,7 +27,7 @@ urlpatterns = patterns(
     url(
         r'^jsi18n/$',
         javascript_catalog,
-        {'packages': ('jet',)},
+        {'packages': ('django.conf', 'django.contrib.admin', 'jet',)},
         name='jsi18n'
     ),
 )