X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..09e8e10bd9c2e35ca5573c60763c1838b8242331:/apps/wiki_img/urls.py?ds=sidebyside diff --git a/apps/wiki_img/urls.py b/apps/wiki_img/urls.py index 075e5adf..518da6b0 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 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"), + )