mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-08 00:36:31 +00:00
feat(admin): add is_expired field to PaymentAdmin for better payment visibility ✨
feat(admin): include expiry_date in DeviceAdmin for enhanced device management ✨
This commit is contained in:
@ -13,10 +13,16 @@ class PaymentAdmin(admin.ModelAdmin):
|
||||
"paid",
|
||||
"paid_at",
|
||||
"method",
|
||||
"is_expired",
|
||||
"expires_at",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
)
|
||||
|
||||
@admin.display(boolean=True, description="Expired")
|
||||
def is_expired(self, obj):
|
||||
return obj.is_expired
|
||||
|
||||
|
||||
class TopupAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
|
Reference in New Issue
Block a user