Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 7a198f51050adb2f626a5ef422a3bfab7a2305e3 1 parent 2d6d20d
Russell Keith-Magee authored July 12, 2007
3  tests/regressiontests/serializers_regress/models.py
@@ -117,7 +117,8 @@ class M2MData(models.Model):
117 117
     data = models.ManyToManyField(Anchor, null=True)
118 118
     
119 119
 class O2OData(models.Model):
120  
-    data = models.OneToOneField(Anchor, null=True)
  120
+    # One to one field can't be null, since it is a PK.
  121
+    data = models.OneToOneField(Anchor)
121 122
 
122 123
 class FKSelfData(models.Model):
123 124
     data = models.ForeignKey('self', null=True)

0 notes on commit 7a198f5

Please sign in to comment.
Something went wrong with that request. Please try again.