Fix theme box.
[redakcja.git] / src / wiki_img / urls.py
index 6a516f3..8224484 100644 (file)
@@ -1,24 +1,26 @@
-# -*- coding: utf-8
-from django.conf.urls import patterns, url
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.conf.urls import url
+from . import views
 
 
-urlpatterns = patterns('wiki_img.views',
+urlpatterns = [
     url(r'^edit/(?P<slug>[^/]+)/$',
-        'editor', name="wiki_img_editor"),
+        views.editor, name="wiki_img_editor"),
 
     url(r'^readonly/(?P<slug>[^/]+)/$',
-        'editor_readonly', name="wiki_img_editor_readonly"),
+        views.editor_readonly, name="wiki_img_editor_readonly"),
 
     url(r'^text/(?P<image_id>\d+)/$',
-        'text', name="wiki_img_text"),
+        views.text, name="wiki_img_text"),
 
     url(r'^history/(?P<object_id>\d+)/$',
-        'history', name="wiki_img_history"),
+        views.history, name="wiki_img_history"),
 
     url(r'^revert/(?P<object_id>\d+)/$',
-        'revert', name='wiki_img_revert'),
+        views.revert, name='wiki_img_revert'),
 
-    url(r'^diff/(?P<object_id>\d+)/$', 'diff', name="wiki_img_diff"),
-    url(r'^pubmark/(?P<object_id>\d+)/$', 'pubmark', name="wiki_img_pubmark"),
-
-)
+    url(r'^diff/(?P<object_id>\d+)/$', views.diff, name="wiki_img_diff"),
+    url(r'^pubmark/(?P<object_id>\d+)/$', views.pubmark, name="wiki_img_pubmark"),
+]