mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +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:
parent
fe2747d1e0
commit
e522e61a80
3 changed files with 8 additions and 2 deletions
|
@ -14,6 +14,9 @@ class Reporter(models.Model):
|
|||
last_name = models.CharField(max_length=30)
|
||||
email = models.EmailField()
|
||||
|
||||
class Meta:
|
||||
ordering = ('first_name', 'last_name')
|
||||
|
||||
def __unicode__(self):
|
||||
return u"%s %s" % (self.first_name, self.last_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue