mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-17 03:51:02 +03:00
Expand regex match on users/urls.py UserDetailView
This commit is contained in:
parent
24cb80c0f3
commit
ad5857c955
|
@ -24,6 +24,7 @@ Kevin A. Stone
|
||||||
mozillazg / @mozillazg
|
mozillazg / @mozillazg
|
||||||
Henrique G. G. Pereira / @ikkebr
|
Henrique G. G. Pereira / @ikkebr
|
||||||
Travis McNeill / gh: Tavistock / @tavistock_esq
|
Travis McNeill / gh: Tavistock / @tavistock_esq
|
||||||
|
Matt Linares
|
||||||
|
|
||||||
* Possesses commit rights
|
* Possesses commit rights
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ urlpatterns = patterns('',
|
||||||
),
|
),
|
||||||
# URL pattern for the UserDetailView
|
# URL pattern for the UserDetailView
|
||||||
url(
|
url(
|
||||||
regex=r'^(?P<username>[\w\-_]+)/$',
|
regex=r'^(?P<username>[\w.@+-]+)/$',
|
||||||
view=views.UserDetailView.as_view(),
|
view=views.UserDetailView.as_view(),
|
||||||
name='detail'
|
name='detail'
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user