sort by price too

This commit is contained in:
Thomas Steen Rasmussen 2016-06-01 18:42:17 +02:00
parent 68bc503b94
commit 0ed0a4d289

View file

@ -191,7 +191,7 @@ class Product(CreatedUpdatedModel, UUIDModel):
class Meta:
verbose_name = 'Product'
verbose_name_plural = 'Products'
ordering = ['available_in']
ordering = ['available_in', 'price']
category = models.ForeignKey(
'shop.ProductCategory',
@ -357,3 +357,4 @@ class Ticket(CreatedUpdatedModel, UUIDModel):
def get_absolute_url(self):
return str(reverse_lazy('shop:ticket_detail', kwargs={'pk': self.pk}))