summaryrefslogtreecommitdiff
path: root/app/resume/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/urls.py')
-rw-r--r--app/resume/urls.py33
1 files changed, 17 insertions, 16 deletions
diff --git a/app/resume/urls.py b/app/resume/urls.py
index 0086a2b..de95866 100644
--- a/app/resume/urls.py
+++ b/app/resume/urls.py
@@ -7,16 +7,15 @@ app_name = "resume"
urlpatterns = [
path(
- r'',
- views.PageView.as_view(),
- {'path': 'work', 'slug': 'profile'},
- name="pages"
+ r'pubs/<str:publisher>/<int:page>/',
+ views.ByPublisherListView.as_view(),
+ name='list_by_publisher',
),
path(
- r'<str:slug>/',
- views.PageView.as_view(),
- {'path': 'work'},
- name="pages"
+ r'pubs/<str:publisher>/',
+ views.ByPublisherListView.as_view(),
+ {'page': 1},
+ name='list_by_publisher',
),
path(
r'pubs/<str:page>/',
@@ -30,18 +29,20 @@ urlpatterns = [
name="list"
),
path(
- r'pubs/<str:publisher>/<int:page>/',
- views.ByPublisherListView.as_view(),
- name='list_by_publisher',
- ),
- path(
r'pubs/<str:publisher>/<str:slug>',
views.PubItemDetailView.as_view(),
name='detail',
),
path(
- r'pubs/(?P<publisher>[-\w]+)/$',
- RedirectView.as_view(url="/resume/pubs/%(publisher)s/1/", permanent=False),
- name="live_publisher_redirect"
+ r'<str:slug>/',
+ views.PageView.as_view(),
+ {'path': 'work'},
+ name="pages"
+ ),
+ path(
+ r'',
+ views.PageView.as_view(),
+ {'path': 'work', 'slug': 'profile'},
+ name="pages"
),
]