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-'):