Fix pk for client edit view – int doesn't work if it starts with 0

This commit is contained in:
Kumi 2022-08-12 07:51:28 +00:00
parent cb340d2d2f
commit 3333a5334e
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -22,6 +22,6 @@ urlpatterns = [
path("authorizations/data/", AuthorizationLogDataView.as_view(), name="authorization_log_data"),
path("apps/", ClientView.as_view(), name="client_list"),
path("apps/data/", ClientDataView.as_view(), name="client_list_data"),
path("apps/<int:pk>/edit/", ClientEditView.as_view(), name="client_edit"),
path("apps/<str:pk>/edit/", ClientEditView.as_view(), name="client_edit"),
path("apps/new/", ClientCreateView.as_view(), name="client_create"),
]