Fix warnings during tests
@@ -13,11 +13,20 @@ class Foo(models.Model):
def __str__(self):
return 'Foo(%s, %s)' % (self.a, self.b)
+ class Meta:
+ ordering = ('pk',)
+
class Bar(models.Model):
foo = models.ForeignKey(Foo, on_delete=CASCADE)
c = models.BooleanField()
+ class Meta:
+ ordering = ('pk',)
+
class Baz(models.Model):
foo = models.ManyToManyField(Foo)
+
+ class Meta:
+ ordering = ('pk',)
