]> git.parisson.com Git - telemeta.git/commitdiff
Fix profile url with email as user id
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 16 Jun 2020 08:24:29 +0000 (10:24 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 16 Jun 2020 08:24:29 +0000 (10:24 +0200)
telemeta/urls.py

index deb519b2d160044584f7efd6a20425803973ccd1..15034d642257d277c130189c92b53da653378650 100644 (file)
@@ -333,10 +333,10 @@ urlpatterns = patterns('',
     url(r'^desk/home/$', home_view.home, name="telemeta-desk-home"),
 
     # Profiles
-    url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"),
-    url(r'^users/(?P<username>[A-Za-z0-9._-]+)/$', profile_view.profile_detail, name="telemeta-profile-detail-2"),
-    url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"),
-    url(r'^accounts/(?P<username>[A-Za-z0-9._-]+)/rss/$', UserRevisionsFeed(),  name="telemeta-user-rss"),
+    url(r'^accounts/(?P<username>[A-Za-z0-9@._-]+)/profile/$', profile_view.profile_detail, name="telemeta-profile-detail"),
+    url(r'^users/(?P<username>[A-Za-z0-9@._-]+)/$', profile_view.profile_detail, name="telemeta-profile-detail-2"),
+    url(r'^accounts/(?P<username>[A-Za-z0-9@._-]+)/profile/edit/$', profile_view.profile_edit, name="telemeta-profile-edit"),
+    url(r'^accounts/(?P<username>[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"),