summaryrefslogtreecommitdiff
path: root/app/books/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/books/urls.py')
-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"
),
]