diff options
author | MR Lemon <matt@matthewlemon> | 2020-04-19 15:55:03 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-04-19 15:55:03 +0100 |
commit | 607baf5b0abcd6e2a80d2d72114be113e3ab8c2a (patch) | |
tree | e2a1fc4925927f02ea707d3cecc460a1a7dbea66 /ctrack/caf | |
parent | 5e8475a02053f1df18d08d3c45afdf687b664fa4 (diff) |
redirect straight to new applicable system page after it has been created
Diffstat (limited to 'ctrack/caf')
-rw-r--r-- | ctrack/caf/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index a0fc17b..570700e 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -59,3 +59,6 @@ class ApplicableSystemCreate(LoginRequiredMixin, CreateView): template_name = "caf/applicablesystem_create.html" success_url = reverse_lazy("caf:es_list") + def get_success_url(self) -> str: + return str(reverse_lazy("caf:ass_detail", args=[self.object.id])) + |