predictable urls to cover images
[redakcja.git] / apps / wiki_img / urls.py
index b4396c6..6a516f3 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
 
 
 urlpatterns = patterns('wiki_img.views',
@@ -12,7 +12,13 @@ urlpatterns = patterns('wiki_img.views',
     url(r'^text/(?P<image_id>\d+)/$',
         'text', name="wiki_img_text"),
 
-    url(r'^history/(?P<chunk_id>\d+)/$',
-        'history', name="wiki_history"),
+    url(r'^history/(?P<object_id>\d+)/$',
+        'history', name="wiki_img_history"),
+
+    url(r'^revert/(?P<object_id>\d+)/$',
+        '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"),
 
 )