Browse Source

Fix on delete

Denis K 7 years ago
parent
commit
baae5f472c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jet/tests/models.py

+ 1 - 1
jet/tests/models.py

@@ -13,7 +13,7 @@ class TestModel(models.Model):
 
 @python_2_unicode_compatible
 class RelatedToTestModel(models.Model):
-    field = models.ForeignKey(TestModel)
+    field = models.ForeignKey(TestModel, on_delete=models.CASCADE)
 
     def __str__(self):
         return self.field