Select related user, reduce db queries

This commit is contained in:
Tom Hubrecht 2022-02-22 15:06:32 +01:00
parent 4b5a530f2b
commit c4cf8d2c38

View file

@ -174,7 +174,7 @@ class PermissionManagementView(StaffMemberMixin, SuccessMessageMixin, FormView):
class JournalView(StaffMemberMixin, ListView): class JournalView(StaffMemberMixin, ListView):
model = Event queryset = Event.objects.select_related("user")
template_name = "auth/journal.html" template_name = "auth/journal.html"