fox
This commit is contained in:
@@ -27,6 +27,15 @@ class PartyAdmin(admin.ModelAdmin):
|
||||
]
|
||||
autocomplete_fields = ['orders']
|
||||
ordering = ['-number']
|
||||
list_editable = [
|
||||
"party_amount__total_price",
|
||||
'party_amount__calculated_amount',
|
||||
'party_amount__paid_amount',
|
||||
"currency",
|
||||
'process',
|
||||
'payment_percentage',
|
||||
'is_deleted',
|
||||
]
|
||||
|
||||
def get_queryset(self, request):
|
||||
return super().get_queryset(request).select_related('party_amount', 'mediator').prefetch_related('orders')
|
||||
|
||||
Reference in New Issue
Block a user