From 607baf5b0abcd6e2a80d2d72114be113e3ab8c2a Mon Sep 17 00:00:00 2001 From: MR Lemon Date: Sun, 19 Apr 2020 15:55:03 +0100 Subject: redirect straight to new applicable system page after it has been created --- ctrack/caf/views.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ctrack/caf') 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])) + -- cgit v1.2.3