susioma/buyer/admin.py

9 lines
222 B
Python
Raw Permalink Normal View History

2019-10-26 15:25:21 +00:00
from django.contrib import admin
from buyer.models import Card
2020-02-01 15:05:10 +00:00
class CardAdmin(admin.ModelAdmin):
list_display = ["number", "purchased", "delivered"]
ordering = ["delivered"]
2019-10-26 15:25:21 +00:00
2020-02-01 15:05:10 +00:00
admin.site.register(Card, CardAdmin)