show orders with newest at the top
This commit is contained in:
parent
e98bd530e2
commit
15ceea3f5a
|
@ -15,6 +15,7 @@ class Order(CreatedUpdatedModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ('user', 'open')
|
unique_together = ('user', 'open')
|
||||||
|
ordering = '-created'
|
||||||
|
|
||||||
products = models.ManyToManyField(
|
products = models.ManyToManyField(
|
||||||
'shop.Product',
|
'shop.Product',
|
||||||
|
|
Loading…
Reference in a new issue