Ticket #10589: 10589.duplicate_model.diff
File 10589.duplicate_model.diff, 789 bytes (added by , 16 years ago) |
---|
-
django/tests/regressiontests/null_fk_ordering/models.py
48 48 def __unicode__(self): 49 49 return self.comment_text 50 50 51 class Comment(models.Model):52 post = models.ForeignKey(Post, null=True)53 comment_text = models.CharField(max_length=250)54 55 class Meta:56 ordering = ['post__forum__system_info__system_name', 'comment_text']57 58 def __unicode__(self):59 return self.comment_text60 51 61 52 __test__ = {'API_TESTS': """ 62 53 # Regression test for #7512 -- ordering across nullable Foreign Keys shouldn't