From dc62aeed02e14ce1d4f1f31af15a33fca34c8f0e Mon Sep 17 00:00:00 2001 From: Andy Babic Date: Mon, 10 Jan 2022 21:58:35 +0000 Subject: [PATCH] Add missing staticmethod decorator to normalise_page_route_path() --- wagtail/contrib/redirects/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/contrib/redirects/models.py b/wagtail/contrib/redirects/models.py index 94e1f31ba8..15003892a6 100644 --- a/wagtail/contrib/redirects/models.py +++ b/wagtail/contrib/redirects/models.py @@ -150,6 +150,7 @@ class Redirect(models.Model): return path + @staticmethod def normalise_page_route_path(url): # Strip whitespace url = url.strip()