From b172942a7de8be75168a96c733bf089cdbfc51e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 29 Jan 2019 12:00:53 +0100 Subject: [PATCH] adapt urlpatterns declaration for Django 1.11 (#30162) --- passerelle_imio_ts1_datasources/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/passerelle_imio_ts1_datasources/urls.py b/passerelle_imio_ts1_datasources/urls.py index 1641610..f05c7bd 100644 --- a/passerelle_imio_ts1_datasources/urls.py +++ b/passerelle_imio_ts1_datasources/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import patterns, include, url +from django.conf.urls import include, url from .views import (DatasourcesView, MotivationtermAddView, MotivationtermDeleteView, @@ -8,11 +8,11 @@ from .views import (DatasourcesView, DestinationtermUpdateView) -urlpatterns = patterns('', +urlpatterns = [ url(r'^(?P[\w,-]+)/data$', DatasourcesView.as_view(), name='DatasourcesView-data'), -) +] -management_urlpatterns = patterns('', +management_urlpatterns = [ url(r'^(?P[\w,-]+)/motivationterm/add/', MotivationtermAddView.as_view(), name='motivationterm-add'), url(r'^(?P[\w,-]+)/motivationterm/(?P[\w,-]+)/delete/', @@ -25,4 +25,4 @@ management_urlpatterns = patterns('', DestinationtermDeleteView.as_view(), name='destinationterm-delete'), url(r'^(?P[\w,-]+)/destinationterm/(?P[\w,-]+)/update/', DestinationtermUpdateView.as_view(), name='destinationterm-update') -) +]