Skip to content

Commit

Permalink
Merge pull request #151 from springload/fix/people-categories
Browse files Browse the repository at this point in the history
Remove old people-category views from URLs
  • Loading branch information
haydngreatnews authored Aug 1, 2024
2 parents 45ea5d4 + da6c626 commit bd43f24
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cdhweb/people/urls.py
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)),
]

0 comments on commit bd43f24

Please sign in to comment.