Skip to content

Commit

Permalink
fix projectroles url routes (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored May 2, 2024
1 parent 83d27e5 commit 86c714f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion projectroles/tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def test_get_sidebar_links_project_detail_view(self):
},
{
'name': 'project-update',
'url': f'/project/project/update/{self.project.sodar_uuid}',
'url': f'/project/update/{self.project.sodar_uuid}',
'label': 'Update Project',
'icon': 'mdi:lead-pencil',
'active': False,
Expand Down
4 changes: 2 additions & 2 deletions projectroles/tests/test_views_ajax.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def test_get(self):
},
{
'name': 'project-update',
'url': f'/project/project/update/{self.project.sodar_uuid}',
'url': f'/project/update/{self.project.sodar_uuid}',
'label': 'Update Project',
'icon': 'mdi:lead-pencil',
'active': False,
Expand Down Expand Up @@ -603,7 +603,7 @@ def test_get_app_links(self):
},
{
'name': 'project-update',
'url': f'/project/project/update/{self.project.sodar_uuid}',
'url': f'/project/update/{self.project.sodar_uuid}',
'label': 'Update Project',
'icon': 'mdi:lead-pencil',
'active': False,
Expand Down
8 changes: 4 additions & 4 deletions projectroles/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
name='detail',
),
path(
route='project/update/<uuid:project>',
route='update/<uuid:project>',
view=views.ProjectUpdateView.as_view(),
name='update',
),
path(
route='project/create',
route='create',
view=views.ProjectCreateView.as_view(),
name='create',
),
path(
route='project/create/<uuid:project>',
route='create/<uuid:project>',
view=views.ProjectCreateView.as_view(),
name='create',
),
path(
route='project/archive/<uuid:project>',
route='archive/<uuid:project>',
view=views.ProjectArchiveView.as_view(),
name='archive',
),
Expand Down

0 comments on commit 86c714f

Please sign in to comment.