FEATURE(wallet): add DateTimeRangeFilter to panel admin
add DateTimeRangeFilter to panel admin
This commit is contained in:
parent
5eff037d10
commit
5d897b0917
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def export_excel(modeladmin, request, queryset):
|
|||
class TransactionAdmin(admin.ModelAdmin):
|
||||
list_display = ['uuid', 'application', 'splited_amount', 'jalali_datetime', 'payer', 'payer_type', 'payee', 'payee_type', 'state', 'amount', 'created_at', 'updated_at']
|
||||
search_fields = ['uuid', 'created_at', 'updated_at', 'payer_account__owner_uuid', 'payee_account__owner_uuid', 'application__uuid']
|
||||
list_filter = ['application', 'state', ('created_at', DateTimeRangeFilter),]
|
||||
list_filter = ['application', 'state', ('created_at', DateTimeRangeFilter), ('updated_at', DateTimeRangeFilter),]
|
||||
actions = [export_excel]
|
||||
|
||||
class AccountAdmin(admin.ModelAdmin):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue