Make variables passed to CRUD helpers consistent

This commit is contained in:
2022-12-18 17:37:34 +00:00
parent 246674b03e
commit 8de99c1bcd
8 changed files with 25 additions and 65 deletions

View File

@@ -163,9 +163,6 @@ class HookCreate(LoginRequiredMixin, ObjectCreate):
model = Hook
form_class = HookForm
list_url_name = "hooks"
list_url_args = ["type"]
submit_url_name = "hook_create"
@@ -173,14 +170,8 @@ class HookUpdate(LoginRequiredMixin, ObjectUpdate):
model = Hook
form_class = HookForm
list_url_name = "hooks"
list_url_args = ["type"]
submit_url_name = "hook_update"
class HookDelete(LoginRequiredMixin, ObjectDelete):
model = Hook
list_url_name = "hooks"
list_url_args = ["type"]