Fix log entries from deleted plugins

This commit is contained in:
Raphael Michel
2018-06-10 14:50:08 +02:00
parent 3ee2492382
commit f302c2e154

View File

@@ -66,10 +66,13 @@ class LogEntry(models.Model):
def display_object(self):
from . import Order, Voucher, Quota, Item, ItemCategory, Question, Event, TaxRule, SubEvent
if self.content_type.model_class() is Event:
return ''
try:
if self.content_type.model_class() is Event:
return ''
co = self.content_object
co = self.content_object
except:
return ''
a_map = None
a_text = None