我有主要的 django 管理类,其中包括具有两个字段 pos_x 和 pos_y 的内联类。
我想通过 JS 和 modal-window 更新这个字段。
我可以在 InlineClass 中添加按钮而不更改任何管理 html 吗?
class InlineClass(CommonInlineConfigurationMixin):
model = MapPoint
fields = ['title', ('pos_x', 'pos_y')]
form = Form
Run Code Online (Sandbox Code Playgroud)