Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#7822 closed (duplicate)

Creating a OneToOneField with a related model breaks the list_filter interface in the related model

Reported by: ElliottM Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: admin onetoone o2o list_filter
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

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.

Attachments (1)

admin_test.zip (5.8 KB) - added by ElliottM 6 years ago.
Project containing test case

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by ElliottM

Project containing test case

comment:1 Changed 6 years ago by jacob

  • milestone set to 1.0 alpha
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by gwilson

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #2145.

comment:3 Changed 3 years ago by jacob

  • milestone 1.0 alpha deleted

Milestone 1.0 alpha deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.