forked from CGM_Public/pretix_original
Fix log entries from deleted plugins
This commit is contained in:
@@ -66,10 +66,13 @@ class LogEntry(models.Model):
|
|||||||
def display_object(self):
|
def display_object(self):
|
||||||
from . import Order, Voucher, Quota, Item, ItemCategory, Question, Event, TaxRule, SubEvent
|
from . import Order, Voucher, Quota, Item, ItemCategory, Question, Event, TaxRule, SubEvent
|
||||||
|
|
||||||
if self.content_type.model_class() is Event:
|
try:
|
||||||
return ''
|
if self.content_type.model_class() is Event:
|
||||||
|
return ''
|
||||||
|
|
||||||
co = self.content_object
|
co = self.content_object
|
||||||
|
except:
|
||||||
|
return ''
|
||||||
a_map = None
|
a_map = None
|
||||||
a_text = None
|
a_text = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user