广告区

广告区


本站消息

站长简介/公众号

关注本站官方公众号:程序员总部,领取三大福利!
福利一:python和前端辅导
福利二:进程序员交流微信群,专属于程序员的圈子
福利三:领取全套零基础视频教程(python,java,前端,php)

  价值13000svip视频教程,python大神匠心打造,零基础python开发工程师视频教程全套,基础+进阶+项目实战,包含课件和源码

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

In the Django Admin, the ManyToMany second box doesn't appear for some of my models. How can I display it back?

发布于2022-05-21 12:13     阅读(42)     评论(0)     点赞(11)     收藏(1)



I'm making an app with Django 3.0.8 and I'm customizing the Django admin panel in order to make it more user-friendly for the administrators.

But the problem is that some (almost all) of my ManyToMany fields in my models are not displaying correctly.

Usually, you should have to boxes. On on the left (or above if your screen isn't large enough) where you can select the related objects, and one on the right (or bellow) of the first one, containing the objects already selected. You can use the arrows between to boxes to add or remove one or more objects from one box to the other.

The problem is that in my case, the right/bottom box and the arrows disappeared. i cannot see which objects are related to my current object and therefore I cannot remove some of them from the relationship, which is problematic.

I post this because I already had this with a couples of Django apps.


解决方案


暂无回答







所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:https://www.pythonheidong.com/blog/article/1533943/1f5bb8edd0d833b76859/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

11 0
收藏该文
已收藏

评论内容:(最多支持255个字符)