mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Followed style guide for model attribute ordering.
This commit is contained in:
parent
dd8ed64113
commit
e817ae74da
27 changed files with 148 additions and 135 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue