summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-01-29 11:00:53 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-01-29 11:00:53 (GMT)
commitb172942a7de8be75168a96c733bf089cdbfc51e0 (patch)
treecdbd3904632ebaf39536a95544beeabaf52994af
parenta9eda43a76a197d3521f5616a437a871e8a960b6 (diff)
downloadpasserelle-imio-ts1-datasources-b172942a7de8be75168a96c733bf089cdbfc51e0.zip
passerelle-imio-ts1-datasources-b172942a7de8be75168a96c733bf089cdbfc51e0.tar.gz
passerelle-imio-ts1-datasources-b172942a7de8be75168a96c733bf089cdbfc51e0.tar.bz2
adapt urlpatterns declaration for Django 1.11 (#30162)
-rw-r--r--passerelle_imio_ts1_datasources/urls.py10
1 files 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<slug>[\w,-]+)/data$', DatasourcesView.as_view(), name='DatasourcesView-data'),
-)
+]
-management_urlpatterns = patterns('',
+management_urlpatterns = [
url(r'^(?P<connector_slug>[\w,-]+)/motivationterm/add/',
MotivationtermAddView.as_view(), name='motivationterm-add'),
url(r'^(?P<connector_slug>[\w,-]+)/motivationterm/(?P<pk>[\w,-]+)/delete/',
@@ -25,4 +25,4 @@ management_urlpatterns = patterns('',
DestinationtermDeleteView.as_view(), name='destinationterm-delete'),
url(r'^(?P<connector_slug>[\w,-]+)/destinationterm/(?P<pk>[\w,-]+)/update/',
DestinationtermUpdateView.as_view(), name='destinationterm-update')
-)
+]