mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Fix caching
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user