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

@@ -66,9 +66,6 @@ class AccountCreate(LoginRequiredMixin, OTPRequiredMixin, ObjectCreate):
model = Account
form_class = AccountForm
list_url_name = "accounts"
list_url_args = ["type"]
submit_url_name = "account_create"
@@ -76,14 +73,8 @@ class AccountUpdate(LoginRequiredMixin, OTPRequiredMixin, ObjectUpdate):
model = Account
form_class = AccountForm
list_url_name = "accounts"
list_url_args = ["type"]
submit_url_name = "account_update"
class AccountDelete(LoginRequiredMixin, OTPRequiredMixin, ObjectDelete):
model = Account
list_url_name = "accounts"
list_url_args = ["type"]