diff options
Diffstat (limited to 'tests/regressiontests/null_fk')
| -rw-r--r-- | tests/regressiontests/null_fk/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regressiontests/null_fk/models.py b/tests/regressiontests/null_fk/models.py index 529dde5039..49887819ac 100644 --- a/tests/regressiontests/null_fk/models.py +++ b/tests/regressiontests/null_fk/models.py @@ -22,6 +22,9 @@ class Comment(models.Model): post = models.ForeignKey(Post, null=True) comment_text = models.CharField(max_length=250) + class Meta: + ordering = ('comment_text',) + def __unicode__(self): return self.comment_text |
