Update tables when objects are changed
This commit is contained in:
@@ -104,11 +104,15 @@ class HookList(LoginRequiredMixin, ObjectList):
|
||||
list_template = "partials/hook-list.html"
|
||||
model = Hook
|
||||
context_object_name = "hooks"
|
||||
context_object_name_singular = "hook"
|
||||
title = "Hooks"
|
||||
title_singular = "Hook"
|
||||
page_title = "List of active URL endpoints for receiving hooks."
|
||||
page_subtitle = "Add URLs here to receive Drakdoo callbacks. Make then unique!"
|
||||
|
||||
list_url_name = "hooks"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "hook_create"
|
||||
|
||||
|
||||
@@ -116,6 +120,11 @@ class HookCreate(LoginRequiredMixin, ObjectCreate):
|
||||
model = Hook
|
||||
form_class = HookForm
|
||||
context_object_name = "hooks"
|
||||
context_object_name_singular = "hook"
|
||||
|
||||
list_url_name = "hooks"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "hook_create"
|
||||
|
||||
|
||||
@@ -123,8 +132,18 @@ class HookUpdate(LoginRequiredMixin, ObjectUpdate):
|
||||
model = Hook
|
||||
form_class = HookForm
|
||||
context_object_name = "hooks"
|
||||
context_object_name_singular = "hook"
|
||||
|
||||
list_url_name = "hooks"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "hook_update"
|
||||
|
||||
|
||||
class HookDelete(LoginRequiredMixin, ObjectDelete):
|
||||
model = Hook
|
||||
context_object_name = "hooks"
|
||||
context_object_name_singular = "hook"
|
||||
|
||||
list_url_name = "hooks"
|
||||
list_url_args = ["type"]
|
||||
|
||||
Reference in New Issue
Block a user