1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Fix no cache in ConsoView

This commit is contained in:
Yohann D'ANELLO 2020-02-21 19:46:56 +01:00
parent d8b510a0be
commit 9a0d74c18b

View File

@ -140,6 +140,8 @@ class ConsoView(LoginRequiredMixin, CreateView):
context = super().get_context_data(**kwargs)
context['template_types'] = TransactionCategory.objects.all()
context['no_cache'] = True
if 'template_type' not in self.kwargs.keys():
return context
@ -149,8 +151,6 @@ class ConsoView(LoginRequiredMixin, CreateView):
template_type=template_type)
context['title'] = template_type
context['no_cache'] = True
return context
def get_success_url(self):