从内联链接到 django-admin 中的完整添加/更改页面?
我有一个内联,我希望允许链接到子表的单独“添加/更改”页面,因为子表太大而无法内联编辑(数十个字段)。
我根据评论 13 使编辑链接正常工作:
https://code.djangoproject.com/ticket/13163
但是有谁知道如何更改“添加另一个”按钮的功能,以便它会将我带到“添加”页面,而不仅仅是在内联中添加新记录?
当然,如果当我们到达“添加”页面时,父表的外键链接已经设置为要添加的位置,那就太好了...
感谢您的帮助...
I have an inline where I want to allow links to separate Add/Change pages for the child table, because the child table is way too big to be edited inline (dozens of fields).
I got the edit link working based on comment 13 here:
https://code.djangoproject.com/ticket/13163
But does anyone know how to change the function of the "Add another" button so that it will take me to the "Add" page, rather than just adding the new record in the inline?
Naturally, it would be nice if when we get to the "Add" page, the foreign key link to the parent table is already set to where it is getting added...
Thanks for any help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论