mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Allow editing product display order in list view
This commit is contained in:
parent
0a8c113630
commit
91d71094cd
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ from purchase.models import Basket, BasketItem, PaymentMethod, Product
|
|||
@register(Product)
|
||||
class ProductAdmin(admin.ModelAdmin):
|
||||
list_display = ["name", "display_order", "unit_price"]
|
||||
list_editable = ["display_order"]
|
||||
search_fields = ["name"]
|
||||
|
||||
def unit_price(self, instance: Product):
|
||||
|
|
Loading…
Reference in a new issue