Commit 6f5aca2d authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

models.JournalEntry: Add explicit `on_delete` argument

Required for Django 2.0+
parent 3b7a571a
Pipeline #8367 passed with stage
in 1 minute and 18 seconds
......@@ -91,7 +91,7 @@ class JournalEntry(models.Model):
time = models.DateTimeField(auto_now_add=True, editable=False)
operation = models.PositiveSmallIntegerField(choices=OPERATION_CHOICES, db_index=True, editable=False)
content_type = models.ForeignKey(ContentType, editable=False)
content_type = models.ForeignKey(ContentType, editable=False, on_delete=models.CASCADE)
object_id = models.CharField(db_index=True, editable=False, max_length=255)
instance = GenericForeignKey('content_type', 'object_id')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment