Django admin breaking with non-default primary_key for model with a m2m relationship ?
Posted
by Gj
on Stack Overflow
See other posts from Stack Overflow
or by Gj
Published on 2010-06-16T01:25:47Z
Indexed on
2010/06/16
1:32 UTC
Read the original article
Hit count: 299
I have a simple Post model with a m2m field to a Tag model.
The Tag had for some reason to use a non default primary key.
Inside the admin page for a Post, the labels for the multiple selection field for Tags appear, but not the input field itself. I also tried using the filter_horizontal for the tags, but still only the labels appear without the actual field.
Any ideas why it breaks and/or workarounds?
Thanks!
© Stack Overflow or respective owner