﻿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
1681	[patch][magic-removal] Admin display for OneToOneField is broken	jkocherhans	Adrian Holovaty	"{{{OneToOneField}}} (without {{{raw_id_admin=True}}}) should have an html select field as an input widget in the admin system, but it's using a text input. The input's value attibute is empty on the change form as well.

Also, if even if you '''do''' use {{{raw_id_admin-True}}}, the value attribute of the input tag is empty on the change form.

I think a couple of methods from {{{ForeignKey}}} ought to be moved up to the {{{RelatedField}}} class so {{{OneToOneField}}} inherits them as well... I'll look into this more.

{{{
#!python

from django.contrib.auth.models import User
from django.contrib.sites.models import Site

class UserSite(models.Model):
    user = models.OneToOneField(User) # admin broken w/ or w/o raw_id_admin=True
    site = models.ForeignKey(Site)
}}}"	defect	closed	contrib.admin	magic-removal	normal	fixed			Unreviewed	1	0	0	0	0	0
