Select related user, reduce db queries
This commit is contained in:
parent
4b5a530f2b
commit
c4cf8d2c38
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue