mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Eliminate 'patterns' from wagtailimages/urls.py as per https://code.djangoproject.com/ticket/22218
This commit is contained in:
parent
44c217f0a5
commit
4f5da480dd
@ -1,15 +1,14 @@
|
||||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
from wagtail.wagtailimages.views import images, chooser
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', images.index, name='wagtailimages_index'),
|
||||
url(r'^(\d+)/$', images.edit, name='wagtailimages_edit_image'),
|
||||
url(r'^(\d+)/delete/$', images.delete, name='wagtailimages_delete_image'),
|
||||
url(r'^add/$', images.add, name='wagtailimages_add_image'),
|
||||
|
||||
urlpatterns = patterns(
|
||||
'wagtail.wagtailimages.views',
|
||||
url(r'^$', 'images.index', name='wagtailimages_index'),
|
||||
url(r'^(\d+)/$', 'images.edit', name='wagtailimages_edit_image'),
|
||||
url(r'^(\d+)/delete/$', 'images.delete', name='wagtailimages_delete_image'),
|
||||
url(r'^add/$', 'images.add', name='wagtailimages_add_image'),
|
||||
|
||||
url(r'^chooser/$', 'chooser.chooser', name='wagtailimages_chooser'),
|
||||
url(r'^chooser/(\d+)/$', 'chooser.image_chosen', name='wagtailimages_image_chosen'),
|
||||
url(r'^chooser/upload/$', 'chooser.chooser_upload', name='wagtailimages_chooser_upload'),
|
||||
url(r'^chooser/(\d+)/select_format/$', 'chooser.chooser_select_format', name='wagtailimages_chooser_select_format'),
|
||||
)
|
||||
url(r'^chooser/$', chooser.chooser, name='wagtailimages_chooser'),
|
||||
url(r'^chooser/(\d+)/$', chooser.image_chosen, name='wagtailimages_image_chosen'),
|
||||
url(r'^chooser/upload/$', chooser.chooser_upload, name='wagtailimages_chooser_upload'),
|
||||
url(r'^chooser/(\d+)/select_format/$', chooser.chooser_select_format, name='wagtailimages_chooser_select_format'),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user