Make variables passed to CRUD helpers consistent
This commit is contained in:
@@ -25,8 +25,6 @@ class StrategyList(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
|
||||
class StrategyCreate(LoginRequiredMixin, OTPRequiredMixin, ObjectCreate):
|
||||
model = Strategy
|
||||
form_class = StrategyForm
|
||||
list_url_name = "strategies"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "strategy_create"
|
||||
|
||||
@@ -35,14 +33,8 @@ class StrategyUpdate(LoginRequiredMixin, OTPRequiredMixin, ObjectUpdate):
|
||||
model = Strategy
|
||||
form_class = StrategyForm
|
||||
|
||||
list_url_name = "strategies"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "strategy_update"
|
||||
|
||||
|
||||
class StrategyDelete(LoginRequiredMixin, OTPRequiredMixin, ObjectDelete):
|
||||
model = Strategy
|
||||
|
||||
list_url_name = "strategies"
|
||||
list_url_args = ["type"]
|
||||
|
||||
Reference in New Issue
Block a user