show orders with newest at the top

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 17:49:37 +02:00
parent e98bd530e2
commit 15ceea3f5a

View file

@ -15,6 +15,7 @@ class Order(CreatedUpdatedModel):
class Meta:
unique_together = ('user', 'open')
ordering = '-created'
products = models.ManyToManyField(
'shop.Product',