from django.contrib import admin from buyer.models import Card class CardAdmin(admin.ModelAdmin): list_display = ["number", "purchased", "delivered"] ordering = ["delivered"] admin.site.register(Card, CardAdmin)