Intervention template adjustments
* renames intervention variable to obj to match other template style * renames open routes to detail routes
This commit is contained in:
@@ -269,7 +269,7 @@ class EditInterventionForm(NewInterventionForm):
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.instance is not None:
|
||||
self.action_url = reverse("intervention:edit", args=(self.instance.id,))
|
||||
self.cancel_redirect = reverse("intervention:open", args=(self.instance.id,))
|
||||
self.cancel_redirect = reverse("intervention:detail", args=(self.instance.id,))
|
||||
self.form_title = _("Edit intervention")
|
||||
self.form_caption = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user