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:
2025-07-06 21:23:12 +05:00
parent 950f42ae3f
commit ceb30025ee
2 changed files with 7 additions and 0 deletions

View File

@ -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 = (

View File

@ -10,6 +10,7 @@ class DeviceAdmin(admin.ModelAdmin):
"user",
"mac",
"vendor",
"expiry_date",
"blocked_by",
"name",
"created_at",