mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11392 -- Enforced a predictable result order for a couple of test cases. Thanks to Nathan Auch for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user