Commit f512e4f6fce77753d58a8036dd7354e4a21e327c
1 parent
b7a346b8
Exists in
master
and in
5 other branches
Refactor users urls [Issue #3]
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
users/urls.py
@@ -3,12 +3,12 @@ from django.conf.urls import url | @@ -3,12 +3,12 @@ from django.conf.urls import url | ||
3 | from . import views | 3 | from . import views |
4 | 4 | ||
5 | urlpatterns = [ | 5 | urlpatterns = [ |
6 | - url(r'^usuarios/$', views.UsersListView.as_view(), name='manage'), | ||
7 | - url(r'^usuarios/criar/$', views.Create.as_view(), name='create'), | ||
8 | - url(r'^usuario/editar/(?P<username>[\w_-]+)/$', views.Update.as_view(), name='update'), | ||
9 | - url(r'^usuario/dados/(?P<username>[\w_-]+)/$', views.View.as_view(), name='view'), | ||
10 | - url(r'^perfil/$', views.Profile.as_view(), name='profile'), | ||
11 | - url(r'^perfil/editar/(?P<username>[\w_-]+)/$', views.EditProfile.as_view(), name='edit_profile'), | 6 | + url(r'^$', views.UsersListView.as_view(), name='manage'), |
7 | + url(r'^create/$', views.Create.as_view(), name='create'), | ||
8 | + url(r'^edit/(?P<username>[\w_-]+)/$', views.Update.as_view(), name='update'), | ||
9 | + url(r'^view/(?P<username>[\w_-]+)/$', views.View.as_view(), name='view'), | ||
10 | + url(r'^profile/$', views.Profile.as_view(), name='profile'), | ||
11 | + url(r'^profile/editar/(?P<username>[\w_-]+)/$', views.EditProfile.as_view(), name='edit_profile'), | ||
12 | # | 12 | # |
13 | url(r'^profile/update/$', views.UpdateUser.as_view(), name='update_user'), | 13 | url(r'^profile/update/$', views.UpdateUser.as_view(), name='update_user'), |
14 | ] | 14 | ] |