Make variables passed to CRUD helpers consistent
This commit is contained in:
@@ -99,9 +99,6 @@ class TradingTimeCreate(LoginRequiredMixin, ObjectCreate):
|
||||
model = TradingTime
|
||||
form_class = TradingTimeForm
|
||||
|
||||
list_url_name = "tradingtimes"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "tradingtime_create"
|
||||
|
||||
|
||||
@@ -109,14 +106,8 @@ class TradingTimeUpdate(LoginRequiredMixin, ObjectUpdate):
|
||||
model = TradingTime
|
||||
form_class = TradingTimeForm
|
||||
|
||||
list_url_name = "tradingtimes"
|
||||
list_url_args = ["type"]
|
||||
|
||||
submit_url_name = "tradingtime_update"
|
||||
|
||||
|
||||
class TradingTimeDelete(LoginRequiredMixin, ObjectDelete):
|
||||
model = TradingTime
|
||||
|
||||
list_url_name = "tradingtimes"
|
||||
list_url_args = ["type"]
|
||||
|
||||
Reference in New Issue
Block a user