From d8c50739405ecf8b55a8c2f5fd8327bb18d081a1 Mon Sep 17 00:00:00 2001 From: Dylan Hillerbrand Date: Tue, 21 Nov 2023 11:00:47 -0500 Subject: [PATCH] Update manuscript.py comment on custom 404 return --- app/public/cantusdata/views/manuscript.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/public/cantusdata/views/manuscript.py b/app/public/cantusdata/views/manuscript.py index 0d182d5c..84177e51 100644 --- a/app/public/cantusdata/views/manuscript.py +++ b/app/public/cantusdata/views/manuscript.py @@ -28,9 +28,9 @@ class ManuscriptDetail(generics.RetrieveAPIView): def retrieve(self, request, *args, **kwargs): """ Overrides the default retrieval method - to return a redirect to the manuscript list - page if the manuscript is not found. Implemented - to prevent 404 errors from links to specific manuscripts + to return a custom 404 page if the manuscript + is not found. Implemented to prevent generic + 404 errors from links to specific manuscripts made before manuscript ids were stable. """