On 05/04/2011 12:43 AM, Andy McKay wrote: > > On 2011-05-03, at 2:05 PM, Seth Gordon wrote: >> I get an exception, complaining that Target.source does not allow >> null values. > > You'll probably want to allow null values on your OneToOne field then: > > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.null
Ah, but I don’t want Source.target to be a nullable value. Every Source should point to a Target, but not every Target needs to have a Source. > -- > Andy McKay > a...@clearwind.ca > twitter: @andymckay > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.