From da6c6266036f935850a4be05593be6819e0da1fc Mon Sep 17 00:00:00 2001 From: Haydn Greatnews Date: Thu, 1 Aug 2024 09:14:10 +1200 Subject: [PATCH] Remove old people-category views from URLs These were overriding the pages added in content loading --- cdhweb/people/urls.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cdhweb/people/urls.py b/cdhweb/people/urls.py index 1ae8df8f9..67077e446 100644 --- a/cdhweb/people/urls.py +++ b/cdhweb/people/urls.py @@ -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)), ]