Voucher: Add link to order in voucher history

This commit is contained in:
Raphael Michel
2023-06-02 20:06:51 +02:00
parent 413fabd821
commit f56f6dd628
2 changed files with 12 additions and 1 deletions

View File

@@ -178,7 +178,7 @@ class LoggedModel(models.Model, LoggingMixin):
return LogEntry.objects.filter(
content_type=self.logs_content_type, object_id=self.pk
).select_related('user', 'event', 'oauth_application', 'api_token', 'device')
).select_related('user', 'event', 'event__organizer', 'oauth_application', 'api_token', 'device')
class LockModel: