1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Followed style guide for model attribute ordering.

This commit is contained in:
Matt Wiens
2018-12-27 16:34:14 -08:00
committed by Tim Graham
parent dd8ed64113
commit e817ae74da
27 changed files with 148 additions and 135 deletions

View File

@@ -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()