Django - admin fieldsets 自定义表字段编辑
作者:互联网
@admin.register(Goods) class GoodsAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'create_time') fieldsets = ( ('1.商品基本信息', { 'fields': ('name', ) }), ('2.商品展示内容', { 'fields': ('iamge1', 'iamge2', 'iamge3') }) )
标签:name,自定义,admin,fields,Django,id,fieldsets 来源: https://www.cnblogs.com/chaoqi/p/16538168.html