mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Remove GenericRelation to prevent cascade deletion of logs
This commit is contained in:
@@ -130,3 +130,6 @@ class LogEntry(models.Model):
|
||||
@cached_property
|
||||
def parsed_data(self):
|
||||
return json.loads(self.data)
|
||||
|
||||
def delete(self, using=None, keep_parents=False):
|
||||
raise TypeError("Logs cannot be deleted.")
|
||||
|
||||
Reference in New Issue
Block a user