Python-100-Days/Day41-55/car/search/admin.py

13 lines
261 B
Python
Raw Normal View History

2018-05-24 16:49:40 +08:00
from django.contrib import admin
from search.models import CarRecord
class CarRecordAdmin(admin.ModelAdmin):
list_display = ('carno', 'reason', 'date', 'punish', 'isdone')
search_fields = ('carno', )
admin.site.register(CarRecord, CarRecordAdmin)