sort products by name after price

This commit is contained in:
Thomas Steen Rasmussen 2016-08-15 18:21:12 +02:00
parent 9d793cb7c3
commit 91610014e4

View file

@ -246,7 +246,7 @@ class Product(CreatedUpdatedModel, UUIDModel):
class Meta:
verbose_name = 'Product'
verbose_name_plural = 'Products'
ordering = ['available_in', 'price']
ordering = ['available_in', 'price', 'name']
category = models.ForeignKey(
'shop.ProductCategory',