From 3c0316dae64a78a32ef9afac4a110c7f385e2f69 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 5 May 2019 02:10:29 -0400 Subject: [PATCH] Use class based jsi18n view Signed-off-by: Roberto Rosario --- mayan/apps/common/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/common/urls.py b/mayan/apps/common/urls.py index 93b887c918..13fd7e3fac 100644 --- a/mayan/apps/common/urls.py +++ b/mayan/apps/common/urls.py @@ -1,7 +1,7 @@ from __future__ import unicode_literals from django.conf.urls import url -from django.views.i18n import javascript_catalog, set_language +from django.views.i18n import JavaScriptCatalog, set_language from .api_views import ( APIContentTypeList, APITemplateDetailView, APITemplateListView @@ -50,7 +50,7 @@ urlpatterns += [ regex=r'^favicon\.ico$', view=FaviconRedirectView.as_view() ), url( - regex=r'^jsi18n/(?P\S+?)/$', view=javascript_catalog, + regex=r'^jsi18n/(?P\S+?)/$', view=JavaScriptCatalog.as_view(), name='javascript_catalog' ), url(