1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

🐛 Calculating permissions faster

This commit is contained in:
Yohann D'ANELLO
2020-07-28 15:25:08 +02:00
parent 09027ea35e
commit 84e8b02594
3 changed files with 21 additions and 34 deletions

View File

@ -38,6 +38,9 @@ class ActivityListView(ProtectQuerysetMixin, LoginRequiredMixin, SingleTableView
table_class = ActivityTable
ordering = ('-date_start',)
def get_queryset(self):
return super().get_queryset().distinct()
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)