more filters
This commit is contained in:
parent
8b19c223d5
commit
71314eefc7
1 changed files with 11 additions and 3 deletions
|
|
@ -1,12 +1,20 @@
|
|||
from django.contrib import admin
|
||||
from .models import PaymentRequest, PNA
|
||||
from .models import PaymentRequest, PNA, Fake
|
||||
|
||||
|
||||
class PNAAdmin(admin.ModelAdmin):
|
||||
list_display = ['pna_status_code', 'pna_status_message', 'created_at', 'payment_request']
|
||||
|
||||
|
||||
class PaymentRequestAdmin(admin.ModelAdmin):
|
||||
list_display = ['uuid', 'amount', 'user_id', 'created_at']
|
||||
list_display = ['state', 'uuid', 'amount', 'user_id', 'created_at', 'application', 'gateway']
|
||||
search_fields = ['application', 'amount', 'user_id']
|
||||
list_filter = ['application', 'state']
|
||||
|
||||
|
||||
class FakeAdmin(admin.ModelAdmin):
|
||||
list_display = [ 'created_at']
|
||||
|
||||
admin.site.register(PaymentRequest, PaymentRequestAdmin)
|
||||
admin.site.register(PNA, PNAAdmin)
|
||||
admin.site.register(PNA, PNAAdmin)
|
||||
admin.site.register(Fake, FakeAdmin)
|
||||
Loading…
Add table
Reference in a new issue