From: Yoan Le Clanche Date: Tue, 16 Jun 2020 08:24:29 +0000 (+0200) Subject: Fix profile url with email as user id X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4d2a7a7dd1773651ac08a73073d5c8ea4d1452fe;p=telemeta.git Fix profile url with email as user id --- 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"),