#coding:utf-8
from django.contrib import admin
# Register your models here.
from score import models
#定制化展示多列
class OperateVideo_admin(admin.ModelAdmin):
list_display = ["name"]
class OperateProduction_admin(admin.ModelAdmin):
list_display = ["name"]
admin.site.register(models.OperateVideo , OperateVideo_admin)
admin.site.register(models.OperateProduction , OperateProduction_admin)
注意,list_display = []而不是元组()