forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old people-category views from URLs
These were overriding the pages added in content loading
- Loading branch information
1 parent
45ea5d4
commit da6c626
Showing
1 changed file
with
0 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
from django.urls import path | ||
from django.views.generic.base import RedirectView | ||
|
||
from cdhweb.people import views | ||
|
||
app_name = "people" | ||
urlpatterns = [ | ||
path("staff/", views.StaffListView.as_view(), name="staff"), | ||
path("students/", views.StudentListView.as_view(), name="students"), | ||
path("affiliates/", views.AffiliateListView.as_view(), name="affiliates"), | ||
path("executive-committee/", views.ExecListView.as_view(), name="exec-committee"), | ||
# speakers list was deleted; serve 410 gone | ||
path("speakers/", views.speakerlist_gone), | ||
# redirect from /people/faculty -> /people/affiliates | ||
path("faculty/", RedirectView.as_view(url="/people/affiliates/", permanent=True)), | ||
# redirect from /people/postdocs -> /people/staff | ||
path("postdocs/", RedirectView.as_view(url="/people/staff/", permanent=True)), | ||
] |