mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 18:26:30 +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 = (
|
||||
|
@ -10,6 +10,7 @@ class DeviceAdmin(admin.ModelAdmin):
|
||||
"user",
|
||||
"mac",
|
||||
"vendor",
|
||||
"expiry_date",
|
||||
"blocked_by",
|
||||
"name",
|
||||
"created_at",
|
||||
|
Reference in New Issue
Block a user