【发布时间】:2012-03-23 05:01:04
【问题描述】:
在 django-admin 模型更改列表页面中,我还想与其他模型进行交互。我的意思是,
我有这三个模型
1.Keywords
contains name field
2.Category
contains category_name field
3.Keyword Category Relation
Category is ForeignKey and Keyword is Many to many field
在我需要自定义的关键字模型changelist.html页面中,更改将是
There should be a dropdown box which lists all category model objects
如果我选择一些关键字并从下拉列表中选择特定类别,当点击保存按钮时,关键字和类别需要在另一个模型中更新
应该如何进行?它应该怎么做?建议我
【问题讨论】:
标签: django django-admin django-templates