sort products by name after price
This commit is contained in:
parent
9d793cb7c3
commit
91610014e4
|
@ -246,7 +246,7 @@ class Product(CreatedUpdatedModel, UUIDModel):
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = 'Product'
|
verbose_name = 'Product'
|
||||||
verbose_name_plural = 'Products'
|
verbose_name_plural = 'Products'
|
||||||
ordering = ['available_in', 'price']
|
ordering = ['available_in', 'price', 'name']
|
||||||
|
|
||||||
category = models.ForeignKey(
|
category = models.ForeignKey(
|
||||||
'shop.ProductCategory',
|
'shop.ProductCategory',
|
||||||
|
|
Loading…
Reference in a new issue