﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24851	Regression in reverse one-to-one field in list_display	Eduardo Rivas	Tim Graham	"Including reverse one-to-one relations in `list_display` or `fields` in a `ModelAdmin` breaks the ""change_list"" and ""change"" admin views.

The ""change"" view raises a `FieldError` saying the reverse one-to-one field is unknown. The ""change_list"" raises `AttributeError`: 'OneToOneRel' object has no attribute 'rel'.

I've setup a small test app here: https://gitlab.com/jerivas/one-to-one-bug.

To reproduce:
- Clone the repo
- Install deps from requirements.txt
- Start the development server
- Visit the admin. User/pass: proj/proj
- Both the Car and Engine admins should work
- Uncomment lines 7 & 8 from `cars/admin.py`
- Both the ""change_list"" and ""change"" views  of the Car admin are now broken. The Engine admin continues to work as expected.

This worked normally in 1.6, and I just found it while updating a project from 1.6 to 1.8. I don't know if the bug was introduced in 1.7 or 1.8."	Bug	closed	contrib.admin	1.8	Release blocker	fixed			Accepted	1	0	0	0	0	0
