Eliminate 'patterns' from wagtaildocs/urls.py and admin_urls.py as per https://code.djangoproject.com/ticket/22218

pull/210/head
Matt Westcott 2014-04-25 16:37:33 +01:00
rodzic cea72bcc34
commit e271881156
2 zmienionych plików z 16 dodań i 16 usunięć

Wyświetl plik

@ -1,14 +1,14 @@
from django.conf.urls import patterns, url
from django.conf.urls import url
from wagtail.wagtaildocs.views import documents, chooser
urlpatterns = patterns(
'wagtail.wagtaildocs.views',
url(r'^$', 'documents.index', name='wagtaildocs_index'),
url(r'^add/$', 'documents.add', name='wagtaildocs_add_document'),
url(r'^edit/(\d+)/$', 'documents.edit', name='wagtaildocs_edit_document'),
url(r'^delete/(\d+)/$', 'documents.delete', name='wagtaildocs_delete_document'),
urlpatterns = [
url(r'^$', documents.index, name='wagtaildocs_index'),
url(r'^add/$', documents.add, name='wagtaildocs_add_document'),
url(r'^edit/(\d+)/$', documents.edit, name='wagtaildocs_edit_document'),
url(r'^delete/(\d+)/$', documents.delete, name='wagtaildocs_delete_document'),
url(r'^chooser/$', 'chooser.chooser', name='wagtaildocs_chooser'),
url(r'^chooser/(\d+)/$', 'chooser.document_chosen', name='wagtaildocs_document_chosen'),
url(r'^chooser/upload/$', 'chooser.chooser_upload', name='wagtaildocs_chooser_upload'),
)
url(r'^chooser/$', chooser.chooser, name='wagtaildocs_chooser'),
url(r'^chooser/(\d+)/$', chooser.document_chosen, name='wagtaildocs_document_chosen'),
url(r'^chooser/upload/$', chooser.chooser_upload, name='wagtaildocs_chooser_upload'),
]

Wyświetl plik

@ -1,6 +1,6 @@
from django.conf.urls import patterns, url
from django.conf.urls import url
from wagtail.wagtaildocs.views import serve
urlpatterns = patterns(
'wagtail.wagtaildocs.views',
url(r'^(\d+)/(.*)$', 'serve.serve', name='wagtaildocs_serve'),
)
urlpatterns = [
url(r'^(\d+)/(.*)$', serve.serve, name='wagtaildocs_serve'),
]