Update urls.py (#1537)

Elsewise, named url 'detail' matches regex of 'update'
This commit is contained in:
Andy Woods 2018-03-01 11:21:09 +00:00 committed by Nikita Shupeyko
parent fbdc3c930f
commit 1afa2b4487

View File

@ -14,14 +14,14 @@ urlpatterns = [
view=views.UserRedirectView.as_view(),
name='redirect'
),
url(
regex=r'^(?P<username>[\w.@+-]+)/$',
view=views.UserDetailView.as_view(),
name='detail'
),
url(
regex=r'^~update/$',
view=views.UserUpdateView.as_view(),
name='update'
),
url(
regex=r'^(?P<username>[\w.@+-]+)/$',
view=views.UserDetailView.as_view(),
name='detail'
),
]