mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed ordering-related failure in m2m_through_regress tests
This commit is contained in:
@@ -75,6 +75,9 @@ class Driver(models.Model):
|
||||
def __str__(self):
|
||||
return "%s" % self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ('name',)
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class CarDriver(models.Model):
|
||||
car = models.ForeignKey('Car', to_field='make')
|
||||
|
||||
Reference in New Issue
Block a user