From e817ae74da0e515db31907ebcb2d00bcf7c3f5bc Mon Sep 17 00:00:00 2001 From: Matt Wiens Date: Thu, 27 Dec 2018 16:34:14 -0800 Subject: Followed style guide for model attribute ordering. --- tests/model_forms/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/model_forms') diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index 2c67c187cf..5a80243574 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -215,12 +215,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 Triple(models.Model): left = models.IntegerField() -- cgit v1.3