Skip to content
Snippets Groups Projects
Commit 67b4b6fc authored by ynerant's avatar ynerant
Browse files

Ability to disable cache storage

parent 224afb97
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,9 @@ class ClubAddMemberView(LoginRequiredMixin, CreateView):
context = super().get_context_data(**kwargs)
context['formset'] = MemberFormSet()
context['helper'] = FormSetHelper()
context['no_cache'] = True
return context
def post(self, request, *args, **kwargs):
......
......@@ -28,6 +28,9 @@ class TransactionCreate(LoginRequiredMixin, CreateView):
context = super().get_context_data(**kwargs)
context['title'] = _('Transfer money from your account '
'to one or others')
context['no_cache'] = True
return context
def get_form(self, form_class=None):
......@@ -146,6 +149,8 @@ class ConsoView(LoginRequiredMixin, CreateView):
template_type=template_type)
context['title'] = template_type
context['no_cache'] = True
return context
def get_success_url(self):
......
......@@ -22,6 +22,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{% static "favicon/browserconfig.xml" %}">
<meta name="theme-color" content="#ffffff">
{% if no_cache %}
<meta name="turbolinks-cache-control" content="no-cache">
{% endif %}
{# Bootstrap CSS #}
<link rel="stylesheet"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment