aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMR Lemon <matt@matthewlemon>2020-04-19 15:55:03 +0100
committerMR Lemon <matt@matthewlemon>2020-04-19 15:55:03 +0100
commit607baf5b0abcd6e2a80d2d72114be113e3ab8c2a (patch)
treee2a1fc4925927f02ea707d3cecc460a1a7dbea66 /ctrack/caf
parent5e8475a02053f1df18d08d3c45afdf687b664fa4 (diff)
redirect straight to new applicable system page after it has been created
Diffstat (limited to 'ctrack/caf')
-rw-r--r--ctrack/caf/views.py3
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]))
+