Ticket #14423: test_14423_trunk.diff
File test_14423_trunk.diff, 943 bytes (added by , 14 years ago) |
---|
-
tests/regressiontests/model_inheritance_regress/models.py
276 276 >>> obj = SelfRefChild.objects.create(child_data=37, parent_data=42) 277 277 >>> obj.delete() 278 278 279 # Regression test for #14423 280 # exclude from child class must take into account the null property of the parent's field 281 282 >>> obj = SelfRefChild.objects.create(child_data=37, parent_data=42) 283 >>> len(SelfRefParent.objects.exclude(self_data = 42)) 284 1 285 >>> len(SelfRefChild.objects.exclude(self_data = 42)) 286 1 287 >>> obj.delete() 288 279 289 # Regression tests for #8076 - get_(next/previous)_by_date should work. 280 290 >>> c1 = ArticleWithAuthor(headline='ArticleWithAuthor 1', author="Person 1", pub_date=datetime.datetime(2005, 8, 1, 3, 0)) 281 291 >>> c1.save()