From bb978e29cedbe929b092e7089f789ce5736ad1ec Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Wed, 13 Apr 2022 16:14:56 +0200 Subject: [PATCH] Fix: no success url when saving changes --- container/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/views.py b/container/views.py index b57af54..8ce610a 100644 --- a/container/views.py +++ b/container/views.py @@ -23,8 +23,8 @@ class ContainerListView(LoginRequiredMixin, generic.ListView): class ContainerCreateView(LoginRequiredMixin, generic.CreateView): model = Container - # template_name = 'container/detail.html' fields = ['named_id', 'description', 'color', 'container_type'] + success_url = '/container/' def form_valid(self, form): if not form.instance.named_id.startswith('C-'):