From 4d2a7a7dd1773651ac08a73073d5c8ea4d1452fe Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Tue, 16 Jun 2020 10:24:29 +0200 Subject: [PATCH] Fix profile url with email as user id --- telemeta/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telemeta/urls.py b/telemeta/urls.py index deb519b2..15034d64 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -333,10 +333,10 @@ urlpatterns = patterns('', url(r'^desk/home/$', home_view.home, name="telemeta-desk-home"), # Profiles - url(r'^accounts/(?P[A-Za-z0-9._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"), - url(r'^users/(?P[A-Za-z0-9._-]+)/$', profile_view.profile_detail, name="telemeta-profile-detail-2"), - url(r'^accounts/(?P[A-Za-z0-9._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"), - url(r'^accounts/(?P[A-Za-z0-9._-]+)/rss/$', UserRevisionsFeed(), name="telemeta-user-rss"), + url(r'^accounts/(?P[A-Za-z0-9@._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"), + url(r'^users/(?P[A-Za-z0-9@._-]+)/$', profile_view.profile_detail, name="telemeta-profile-detail-2"), + url(r'^accounts/(?P[A-Za-z0-9@._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"), + url(r'^accounts/(?P[A-Za-z0-9@._-]+)/rss/$', UserRevisionsFeed(), name="telemeta-user-rss"), # Registration url(r'^accounts/password_change/$', 'django.contrib.auth.views.password_change', {'template_name': 'telemeta/registration/password_change_form.html'}, name="telemeta-password-change"), -- 2.39.5