mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Followed style guide for model attribute ordering.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user