Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
django 管理页面上模型的默认视图显示该视图中的项目列表,但仅提供一个字段。如何在列表中显示多个字段?
我找到了完全完成这项工作的函数 list_display():
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display