🐛 Calculating permissions faster
This commit is contained in:
parent
09027ea35e
commit
84e8b02594
3 changed files with 21 additions and 34 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue