Fix caching

This commit is contained in:
2020-10-15 17:32:18 +01:00
parent 3d7ff435c9
commit bb4d31477e
9 changed files with 21 additions and 22 deletions

View File

@@ -141,8 +141,6 @@ def send_admin_awaiting_approval_email(user, request, **kwargs):
user_activated.connect(send_admin_awaiting_approval_email)
# TODO Move
def update_cache(sender, instance, created, **kwargs):
cache.clear()

View File

@@ -1,4 +1,6 @@
{% load namewithnotes from filters %}
{% load cache %}
{% cache None event_table request.user %}
<div class="table-responsive">
<table class="table mb-0">
<thead>
@@ -102,3 +104,4 @@
</tbody>
</table>
</div>
{% endcache %}