X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..8a57885f70d87d9f79b0c0d47dc0f683d434b734:/apps/wiki_img/urls.py diff --git a/apps/wiki_img/urls.py b/apps/wiki_img/urls.py index 075e5adf..6a516f36 100644 --- a/apps/wiki_img/urls.py +++ b/apps/wiki_img/urls.py @@ -1,20 +1,24 @@ # -*- coding: utf-8 -from django.conf.urls.defaults import * -from django.conf import settings -from django.views.generic.list_detail import object_list +from django.conf.urls import patterns, url -from wiki_img.models import ImageDocument - - -PART = ur"""[ ĄĆĘŁŃÓŚŻŹąćęłńóśżź0-9\w_.-]+""" urlpatterns = patterns('wiki_img.views', - url(r'^$', object_list, {'queryset': ImageDocument.objects.all(), "template_name": "wiki_img/document_list.html"}), - - url(r'^edit/(?P%s)$' % PART, + url(r'^edit/(?P[^/]+)/$', 'editor', name="wiki_img_editor"), - url(r'^(?P[^/]+)/text$', + url(r'^readonly/(?P[^/]+)/$', + 'editor_readonly', name="wiki_img_editor_readonly"), + + url(r'^text/(?P\d+)/$', 'text', name="wiki_img_text"), + url(r'^history/(?P\d+)/$', + 'history', name="wiki_img_history"), + + url(r'^revert/(?P\d+)/$', + 'revert', name='wiki_img_revert'), + + url(r'^diff/(?P\d+)/$', 'diff', name="wiki_img_diff"), + url(r'^pubmark/(?P\d+)/$', 'pubmark', name="wiki_img_pubmark"), + )