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",
|
||||||
"paid_at",
|
"paid_at",
|
||||||
"method",
|
"method",
|
||||||
|
"is_expired",
|
||||||
|
"expires_at",
|
||||||
"created_at",
|
"created_at",
|
||||||
"updated_at",
|
"updated_at",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@admin.display(boolean=True, description="Expired")
|
||||||
|
def is_expired(self, obj):
|
||||||
|
return obj.is_expired
|
||||||
|
|
||||||
|
|
||||||
class TopupAdmin(admin.ModelAdmin):
|
class TopupAdmin(admin.ModelAdmin):
|
||||||
list_display = (
|
list_display = (
|
||||||
|
@ -10,6 +10,7 @@ class DeviceAdmin(admin.ModelAdmin):
|
|||||||
"user",
|
"user",
|
||||||
"mac",
|
"mac",
|
||||||
"vendor",
|
"vendor",
|
||||||
|
"expiry_date",
|
||||||
"blocked_by",
|
"blocked_by",
|
||||||
"name",
|
"name",
|
||||||
"created_at",
|
"created_at",
|
||||||
|
Reference in New Issue
Block a user