class CustomerAdmin(admin.ModelAdmin):
list_display = ('id','name','qq','consultant','source','consult_content','status','graduated','date') # django admin显示表的列
list_filter = ('source','status','consultant') # 根据什么过滤
search_fields = ('qq','name') # 搜索那些信息
list_editable = ('status','graduated') # 那系列是可编辑的
list_per_page = 2 # 显示多少页
readonly_fields = ('qq','name') # 那些列不能编辑