mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-10-06 20:11:35 +00:00
feat(wallet): implement wallet transaction model, views, and serializers for fund management ✨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m42s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m42s
This commit is contained in:
@@ -1,9 +1,28 @@
|
||||
from django.contrib import admin
|
||||
from .models import Payment, BillFormula, Topup
|
||||
from .models import Payment, BillFormula, Topup, WalletTransaction
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
class WalletTransactionAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"user",
|
||||
"amount",
|
||||
"transaction_type",
|
||||
"description",
|
||||
"reference_id",
|
||||
"created_at",
|
||||
)
|
||||
search_fields = (
|
||||
"user__first_name",
|
||||
"user__last_name",
|
||||
"user__mobile",
|
||||
"user__id_card",
|
||||
)
|
||||
list_filter = ("transaction_type",)
|
||||
|
||||
|
||||
class PaymentAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
@@ -53,3 +72,4 @@ class TopupAdmin(admin.ModelAdmin):
|
||||
admin.site.register(Payment, PaymentAdmin)
|
||||
admin.site.register(BillFormula)
|
||||
admin.site.register(Topup, TopupAdmin)
|
||||
admin.site.register(WalletTransaction, WalletTransactionAdmin)
|
||||
|
Reference in New Issue
Block a user