mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 12:16:30 +00:00
feat(billing): Enhance Topup admin interface and add default ordering for Topup model ✨
This commit is contained in:
@ -18,6 +18,24 @@ class PaymentAdmin(admin.ModelAdmin):
|
||||
)
|
||||
|
||||
|
||||
class TopupAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"user",
|
||||
"amount",
|
||||
"paid",
|
||||
"paid_at",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
)
|
||||
search_fields = (
|
||||
"user__first_name",
|
||||
"user__last_name",
|
||||
"user__id_card",
|
||||
"user__mobile",
|
||||
)
|
||||
|
||||
|
||||
admin.site.register(Payment, PaymentAdmin)
|
||||
admin.site.register(BillFormula)
|
||||
admin.site.register(Topup)
|
||||
admin.site.register(Topup, TopupAdmin)
|
||||
|
Reference in New Issue
Block a user