Django adminsite

AdminSite:
code

# 用給定的模型管理類  管理  指定的模型
def register(self, model_or_iterable, admin_class=None, **options):

 

# 模型的動做
self._actions = {'delete_selected': actions.delete_selected}

BaseModelAdmin ---->ModelAmin---->UserAdmin
orm

                                                        (modelsname)Admin
it

BaseModelAdmin:io

字段:form

fieldclass

excludemodule

fieldsetsselect

formmodel

redio_fields方法

readonly_fields

方法:

has_add(delete,change,module)_permission

lookup_allowed ?????

to_field_allowed ?????

ModelAdmin:

字段:

list_display

list_fields

inlines

actions

相關文章
相關標籤/搜索