Make variables passed to CRUD helpers consistent
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user