Fixed test under django 2
-from django.db.models import Model, IntegerField, ForeignKey, CharField
+from django.db.models import Model, IntegerField, ForeignKey, CharField, CASCADE
class Foo(Model):
@@ -9,7 +9,7 @@ def __repr__(self):
class Bar(Model):
- foo = ForeignKey(Foo)
+ foo = ForeignKey(Foo, on_delete=CASCADE)
class Baz(Model):
