assertQuerysetEquals requires an ordered queryset

fix_request_path_info
Gavin Wahl 2013-05-24 15:17:44 -06:00
parent 93bc9fecdf
commit 7f2111c201
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ class InitTestModelSubclass(InitTestModel):
# models from github issue # models from github issue
class Top(PolymorphicModel): class Top(PolymorphicModel):
name = models.CharField(max_length=50) name = models.CharField(max_length=50)
class Meta:
ordering = ('pk',)
class Middle(Top): class Middle(Top):
description = models.TextField() description = models.TextField()
class Bottom(Middle): class Bottom(Middle):