当前位置: 动力学知识库 > 问答 > 编程问答 >

python - filter_horizontal equivalent for a ForeignKey

问题描述:

I'd like to use the filter_horizontal widget for a ForeignKey. But it doesn't work, which is normal because this widget is for ManyToMany fields. But i'd really like kind of an auto-completion little widget for my ForeignKey. I tested raw_id_fields and the result is pretty good, through I don't like the fact that it opens in a new window.

If you have any idea, besides using a snippet or other stuff like this...

分享给朋友:
您可能感兴趣的文章:
随机阅读: