Ticket #10589: 10589.duplicate_model.diff

File 10589.duplicate_model.diff, 789 bytes (added by Julien Phalip, 16 years ago)
  • django/tests/regressiontests/null_fk_ordering/models.py

     
    4848    def __unicode__(self):
    4949        return self.comment_text
    5050
    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_text
    6051
    6152__test__ = {'API_TESTS': """
    6253# Regression test for #7512 -- ordering across nullable Foreign Keys shouldn't
Back to Top