This commit is contained in:
behruz-dev
2025-11-15 17:12:54 +05:00
parent 4ebd271af6
commit 9b3780c0a3

View File

@@ -8,7 +8,7 @@ class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'product', 'wherehouse', 'currency', 'counterparty']
list_filter = ['counterparty']
search_fields = ['parties__number']
ordering = ('-created_at')
ordering = ('-created_at',)
# # Statuslar: {'ORDERED', 'PARTIALLY_RECIEVED', 'pending', "open", "buying", "rejected", "recieved", "passive"}
# open -> yangi == NEW