﻿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
9062	admin disallows saving Null fk to more than one object	smcoll	nobody	"{{{
from django.db import models
from django.contrib.auth.models import User

class Contact(models.Model):
    user = models.ForeignKey(User, unique=True, null=True, blank=True)
}}}

In the admin, you can't save more than one model with a Null (-------) fk because you get an error: ""Contact with this User already exists.""

So it's as if Django is treating the ""no relation"" selection as an FK itself, and since unique=True, no more than one model can have a Null fk.

In my understanding, the model above should allow for any number of Null relations, but only allow one relation per User instance.

Might possibly be related to #9039."		closed	contrib.admin	1.0		duplicate			Unreviewed	0	0	0	0	0	0
