Ticket #8825: 8825.diff
File 8825.diff, 1.5 KB (added by , 16 years ago) |
---|
-
django/db/models/base.py
90 90 91 91 # All the fields of any type declared on this model 92 92 new_fields = new_class._meta.local_fields + \ 93 new_class._meta. many_to_many + \93 new_class._meta.local_many_to_many + \ 94 94 new_class._meta.virtual_fields 95 95 field_names = set([f.name for f in new_fields]) 96 96 -
tests/regressiontests/model_inheritance_regress/models.py
71 71 class ArticleWithAuthor(Article): 72 72 author = models.CharField(max_length=100) 73 73 74 class M2MBase(models.Model): 75 articles = models.ManyToManyField(Article) 76 77 class M2MChild(M2MBase): 78 name = models.CharField(max_length=50) 79 74 80 __test__ = {'API_TESTS':""" 75 81 # Regression for #7350, #7202 76 82 # Check that when you create a Parent object with a specific reference to an … … 231 237 ... 232 238 DoesNotExist: ArticleWithAuthor matching query does not exist. 233 239 240 # Regression test for #8825 241 # Verify that ManyToManyField is still present in a child model. 242 243 >>> len(M2MChild._meta.many_to_many) 244 1 245 234 246 """}