Skip to content

Commit

Permalink
Make the requst_decide view swapable.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed Nov 19, 2024
1 parent bfc9030 commit b61128d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jasmin_services/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def swapable_view(setting_name: str, default_view_class: django.views.View) -> d
# Setup swappable views where required.
ServiceDetailsView = swapable_view("SERVICE_DETAILS", views.ServiceDetailsView)
RoleApplyView = swapable_view("ROLE_APPLY", views.RoleApplyView)
RequestDecideView = swapable_view("REQUEST_DECIDE", views.RequestDecideView)


app_name = "jasmin_services"
Expand Down Expand Up @@ -72,6 +73,6 @@ def swapable_view(setting_name: str, default_view_class: django.views.View) -> d
RoleApplyView.as_view(),
name="role_apply",
),
path("request/<int:pk>/decide/", views.RequestDecideView.as_view(), name="request_decide"),
path("request/<int:pk>/decide/", RequestDecideView.as_view(), name="request_decide"),
path("grant/<int:pk>/review/", views.grant_review, name="grant_review"),
]

0 comments on commit b61128d

Please sign in to comment.