目前我的django管理站点的设置如下
Topic
submit_date: 2018/09/25
submit_user: blah
Topic-category1
sub-topic field1 field2
---------------------------------
bleh bleh1 bleh2
mlem mlem1 mlem2
Topic-category2
something something1 something2
---------------------------------------
asd asd1 asd2
asd2 asd2-1 asd2-2
我想在Topic-category1
和表之间添加一个note部分,如下所示
Topic-category1
<this is where the note goes, functions like description>
sub-topic field1 field2
---------------------------------
bleh bleh1 bleh2
mlem mlem1 mlem2
django管理员有办法做到这一点吗?我没有使用任何自定义表单。只使用ModelAdmin
并在这里和那里修改变量
好吧,如果没有Django管理员的自定义表单,我就做不到。你知道吗
https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets
我可以使用
fieldsets
添加描述,但它不适用于TabularInline,因为它无法呈现。你知道吗相关问题 更多 >
编程相关推荐