From c7d14cb9573b7550ff1b9420a614a3b0bb23ba2d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 18 Jun 2021 14:40:28 -0700 Subject: [PATCH] Fixes regex import in urls file --- bookwyrm/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 15e802b5..35540358 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -7,8 +7,8 @@ from django.views.generic.base import TemplateView from bookwyrm import settings, views from bookwyrm.utils import regex -USER_PATH = r"^user/(?P%s)" % regex.username -LOCAL_USER_PATH = r"^user/(?P%s)" % regex.localname +USER_PATH = r"^user/(?P%s)" % regex.USERNAME +LOCAL_USER_PATH = r"^user/(?P%s)" % regex.LOCALNAME status_types = [ "status", @@ -182,7 +182,7 @@ urlpatterns = [ r"^direct-messages/?$", views.DirectMessage.as_view(), name="direct-messages" ), re_path( - r"^direct-messages/(?P%s)?$" % regex.username, + r"^direct-messages/(?P%s)?$" % regex.USERNAME, views.DirectMessage.as_view(), name="direct-messages-user", ),