mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix obscure crash in log entry view
This commit is contained in:
@@ -751,7 +751,9 @@ class DeviceLogView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMixin,
|
||||
qs = LogEntry.objects.filter(
|
||||
device_id=self.device
|
||||
).select_related(
|
||||
'user', 'content_type', 'api_token', 'oauth_application', 'device', 'event'
|
||||
'user', 'content_type', 'api_token', 'oauth_application',
|
||||
).prefetch_related(
|
||||
'device', 'event'
|
||||
).order_by('-datetime')
|
||||
return qs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user