Fixed #3770 -- Remove null=True tag from OneToOne serialization test. OneToOne fields can't have a value of null.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2d6d20def7
commit
7a198f5105
|
@ -117,7 +117,8 @@ class M2MData(models.Model):
|
|||
data = models.ManyToManyField(Anchor, null=True)
|
||||
|
||||
class O2OData(models.Model):
|
||||
data = models.OneToOneField(Anchor, null=True)
|
||||
# One to one field can't be null, since it is a PK.
|
||||
data = models.OneToOneField(Anchor)
|
||||
|
||||
class FKSelfData(models.Model):
|
||||
data = models.ForeignKey('self', null=True)
|
||||
|
|
Loading…
Reference in New Issue