fix regex for project name 08/6708/1
authorlombardofr <lombardo@everyup.it>
Tue, 16 Oct 2018 15:44:47 +0000 (17:44 +0200)
committerlombardofr <lombardo@everyup.it>
Tue, 16 Oct 2018 15:44:47 +0000 (17:44 +0200)
Change-Id: I4197beda738e56331cddb54b0adc69d7bd281c1a
Signed-off-by: lombardofr <lombardo@everyup.it>
projecthandler/urls/project.py

index 91c79c7..e69bd29 100644 (file)
@@ -21,9 +21,9 @@ urlpatterns = [
     url(r'^$', views.open_project, name='open_project'),
     url(r'^list/', views.user_projects, name='projects_list'),
     url(r'^new/', views.create_new_project, name='new_project'),
-    url(r'^(?P<project_id>\w+)/delete$', views.delete_project, name='delete_project'),
-    url(r'^(?P<project_id>\w+)/switch', views.switch_project, name='switch_project'),
-    url(r'^(?P<project_id>\w+)/edit', views.edit_project, name='edit_project'),
+    url(r'^(?P<project_id>[\w ]+)/delete$', views.delete_project, name='delete_project'),
+    url(r'^(?P<project_id>[\w ]+)/switch', views.switch_project, name='switch_project'),
+    url(r'^(?P<project_id>[\w ]+)/edit', views.edit_project, name='edit_project'),
     url(r'^descriptors/(?P<descriptor_type>\w+)/list$', views.show_descriptors, name='list_descriptors'),
     url(r'^descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)',
         views.edit_descriptor, name='edit_descriptor'),