summaryrefslogtreecommitdiff
path: root/tests/model_formsets
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/model_formsets
parentdd8ed64113947ed066b83e443053e389e8f77ebc (diff)
downloaddjango-e817ae74da0e515db31907ebcb2d00bcf7c3f5bc.tar.gz
Followed style guide for model attribute ordering.
Diffstat (limited to 'tests/model_formsets')
-rw-r--r--tests/model_formsets/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_formsets/models.py b/tests/model_formsets/models.py
index 92a07e010f..72728ec582 100644
--- a/tests/model_formsets/models.py
+++ b/tests/model_formsets/models.py
@@ -135,12 +135,12 @@ class Price(models.Model):
price = models.DecimalField(max_digits=10, decimal_places=2)
quantity = models.PositiveIntegerField()
- def __str__(self):
- return "%s for %s" % (self.quantity, self.price)
-
class Meta:
unique_together = (('price', 'quantity'),)
+ def __str__(self):
+ return "%s for %s" % (self.quantity, self.price)
+
class MexicanRestaurant(Restaurant):
serves_tacos = models.BooleanField(default=False)