summaryrefslogtreecommitdiff
path: root/app/books
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-12-02 13:03:21 -0500
committerluxagraf <sng@luxagraf.net>2015-12-02 13:03:21 -0500
commit741cea88d882d8ac185121141ef49815835ad8a7 (patch)
treee465898ca5ba46cc61a191f93f9f71a1fdd7a65d /app/books
parent988f1149eedf8de5c6b083370c736a82b53b48ac (diff)
updated url schemes to quiet some django 1.10 warnings
Diffstat (limited to 'app/books')
-rw-r--r--app/books/urls.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/books/urls.py b/app/books/urls.py
index 6c172aa..c05fed7 100644
--- a/app/books/urls.py
+++ b/app/books/urls.py
@@ -5,18 +5,18 @@ from . import views
urlpatterns = [
url(
- regex=r'(?P<page>\d+)/$',
- view=views.BookListView.as_view(),
+ r'(?P<page>\d+)/$',
+ views.BookListView.as_view(),
name='list',
),
url(
- regex=r'(?P<slug>[-\w]+)/$',
- view=views.BookDetailView.as_view(),
+ r'(?P<slug>[-\w]+)/$',
+ views.BookDetailView.as_view(),
name='detail',
),
url(
- regex=r'^$',
- view=RedirectView.as_view(url="/books/1/", permanent=False),
+ r'^$',
+ RedirectView.as_view(url="/books/1/", permanent=False),
name="live-redirect"
),
]