aboutsummaryrefslogtreecommitdiffstats
path: root/servo/urls/checkin.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
commit904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8 (patch)
tree9742797de4279285a5ec72d8c7adbb05292cf088 /servo/urls/checkin.py
parentead9662f6c3a0dfa77bf64c92c215f3e8367f902 (diff)
downloadServo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.gz
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.bz2
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.zip
Fix deprecation warnings in urlconfs
Diffstat (limited to 'servo/urls/checkin.py')
-rw-r--r--servo/urls/checkin.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/servo/urls/checkin.py b/servo/urls/checkin.py
index aa772d7..c35d927 100644
--- a/servo/urls/checkin.py
+++ b/servo/urls/checkin.py
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
from django.views.generic.base import RedirectView
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from servo.views.checkin import *
-urlpatterns = patterns(
- '',
+urlpatterns = [
url(r'^$', index, name='checkin-index'),
url(r'^sn/$', RedirectView.as_view(url='/checkin/', permanent=True)),
url(r'^customer/$', get_customer, name='checkin-get_customer'),
@@ -16,4 +15,4 @@ urlpatterns = patterns(
url(r'^checkin/print/(\w+)/$', print_confirmation, name='checkin-print'),
url(r'^thanks/(\w+)/$', thanks, name='checkin-thanks'),
url(r'^terms/$', terms, name='checkin-terms'),
-)
+]