Skip to content

Commit e46da0e

Browse files
author
Max Morlocke
committed
switch installation instructions to use JavaScriptCatalog.as_view helper for the i18n view
1 parent 548eeec commit e46da0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/installation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ For Django 1.10 and above, you'll need:
6868
6969
import django
7070
from django.conf.urls import url
71+
from django.views.i18n import JavaScriptCatalog
7172
7273
# Your normal URLs here...
7374
@@ -79,7 +80,7 @@ For Django 1.10 and above, you'll need:
7980
8081
# jsi18n can be anything you like here
8182
urlpatterns += [
82-
url(r'^jsi18n/$', django.views.i18n.javascript_catalog, js_info_dict),
83+
url(r'^jsi18n/$', JavaScriptCatalog.as_view(), js_info_dict),
8384
)
8485
8586

0 commit comments

Comments
 (0)