Creating a OneToOneField with a related model breaks the list_filter interface in the related model
|Reported by:||ElliottM||Owned by:||nobody|
|Severity:||Keywords:||admin onetoone o2o list_filter|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This has happened since before the NFA merge. The summary of the ticket pretty much says it all.
If you create a model (let's call it "UserProfile") and give that model a OneToOneField to another model (In this case "User"), the list_display interface will disappear on the User model's change list. If you change the o2o to a foreignkey, the list_filter panel comes back.
An entire project is included (admin_test.zip).
In this case I did User and UserProfile, but it appears to happen with any OneToOnefield.
Change History (4)
comment:1 Changed 8 years ago by
|milestone:||→ 1.0 alpha|
|Patch needs improvement:||unset|