aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-13 15:51:23 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit71e3aac59d548c71b72cacfee2e95fdb1fadab95 (patch)
treee943a7269789d5a0748b65856a4fc469de22de75
parent7606664eeb7a653db9c01c7dbd2bfc11e480f349 (diff)
downloadopenembedded-core-contrib-71e3aac59d548c71b72cacfee2e95fdb1fadab95.tar.gz
rrs/urls: Use new urlpatterns list syntax
The patterns() function is deprecated in Django 1.8 and gone in 1.10, so we should switch over to the new list format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--rrs/urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rrs/urls.py b/rrs/urls.py
index 4524b9633e..30d86b7bbb 100644
--- a/rrs/urls.py
+++ b/rrs/urls.py
@@ -1,11 +1,11 @@
-from django.conf.urls import patterns, include, url
+from django.conf.urls import include, url
from rrs.models import Release, Milestone
from rrs.views import RecipeListView, recipes_report, RecipeDetailView, \
MaintainerListView, FrontPageRedirect, MaintenancePlanRedirect, \
MaintenanceStatsView
-urlpatterns = patterns('',
+urlpatterns = [
url(r'^$', FrontPageRedirect.as_view(),
name='rrs_frontpage'),
url(r'^maintplan/(?P<maintplan_name>.*)/$',
@@ -30,4 +30,4 @@ urlpatterns = patterns('',
MaintenanceStatsView.as_view(
template_name='rrs/rrs_stats.html'),
name="rrs_stats"),
-)
+]