summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Siraut <csiraut@entrouvert.com>2019-05-02 09:46:15 (GMT)
committerChristophe Siraut <csiraut@entrouvert.com>2019-05-02 09:48:21 (GMT)
commita81117147c27651993704965e31eec83d18e95e8 (patch)
treee6d1e39fbd35190b40265bfbb553d0d342449edf
parent9d4bfc331c72df4a5058e3ebd4b75696d4c7fb55 (diff)
downloadcombo-a81117147c27651993704965e31eec83d18e95e8.zip
combo-a81117147c27651993704965e31eec83d18e95e8.tar.gz
combo-a81117147c27651993704965e31eec83d18e95e8.tar.bz2
gallery: urlpatterns should be a plain list of django.conf.urls.url() instances
-rw-r--r--combo/apps/gallery/urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/combo/apps/gallery/urls.py b/combo/apps/gallery/urls.py
index 9737a15..5fcfa05 100644
--- a/combo/apps/gallery/urls.py
+++ b/combo/apps/gallery/urls.py
@@ -14,11 +14,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from . import views
-manager_urlpatterns = patterns('',
+manager_urlpatterns = [
url('^gallery/(?P<gallery_pk>\w+)/images/add/$', views.image_add,
name='combo-gallery-image-add'),
url('^gallery/(?P<gallery_pk>\w+)/order$', views.image_order,
@@ -27,4 +27,4 @@ manager_urlpatterns = patterns('',
name='combo-gallery-image-edit'),
url('^gallery/(?P<gallery_pk>\w+)/images/(?P<pk>\w+)/delete$', views.image_delete,
name='combo-gallery-image-delete'),
-)
+]