Code

Ticket #10589: 10589.duplicate_model.diff

File 10589.duplicate_model.diff, 789 bytes (added by julien, 5 years ago)
Line 
1Index: django/tests/regressiontests/null_fk_ordering/models.py
2===================================================================
3--- django/tests/regressiontests/null_fk_ordering/models.py     (revision 10116)
4+++ django/tests/regressiontests/null_fk_ordering/models.py     (working copy)
5@@ -48,15 +48,6 @@
6     def __unicode__(self):
7         return self.comment_text
8 
9-class Comment(models.Model):
10-    post = models.ForeignKey(Post, null=True)
11-    comment_text = models.CharField(max_length=250)
12-
13-    class Meta:
14-        ordering = ['post__forum__system_info__system_name', 'comment_text']
15-
16-    def __unicode__(self):
17-        return self.comment_text
18 
19 __test__ = {'API_TESTS': """
20 # Regression test for #7512 -- ordering across nullable Foreign Keys shouldn't