summaryrefslogtreecommitdiff
path: root/tests/m2m_through_regress
diff options
context:
space:
mode:
authorMatt Wiens <mwiens91@gmail.com>2018-12-27 16:34:14 -0800
committerTim Graham <timograham@gmail.com>2018-12-27 19:34:14 -0500
commite817ae74da0e515db31907ebcb2d00bcf7c3f5bc (patch)
tree95a250a4d845b9c8f4f8416fc8962cfe1937951e /tests/m2m_through_regress
parentdd8ed64113947ed066b83e443053e389e8f77ebc (diff)
Followed style guide for model attribute ordering.
Diffstat (limited to 'tests/m2m_through_regress')
-rw-r--r--tests/m2m_through_regress/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/m2m_through_regress/models.py b/tests/m2m_through_regress/models.py
index 0fd7d9c911..5405e5595c 100644
--- a/tests/m2m_through_regress/models.py
+++ b/tests/m2m_through_regress/models.py
@@ -52,12 +52,12 @@ class Car(models.Model):
class Driver(models.Model):
name = models.CharField(max_length=20, unique=True, null=True)
- def __str__(self):
- return "%s" % self.name
-
class Meta:
ordering = ('name',)
+ def __str__(self):
+ return "%s" % self.name
+
class CarDriver(models.Model):
car = models.ForeignKey('Car', models.CASCADE, to_field='make')