diff --git a/api/api/admin/media_report.py b/api/api/admin/media_report.py index da155822475..50e4f96ad0f 100644 --- a/api/api/admin/media_report.py +++ b/api/api/admin/media_report.py @@ -186,6 +186,11 @@ def wrapper(*args, **kwargs): # End of block lifted from Django source. urls = super().get_urls() + + # Using slice assignment (docs: + # https://docs.python.org/3/tutorial/introduction.html#lists), + # insert custom URLs at the penultimate position so that they + # appear just before the catch-all view. urls[-1:-1] = [ path( "/moderate/",