What is the best way to use a HyperlinkedModelSerializer with a 
OneToOneField?

I have two models (A, B)
A and  B have a one-to-one association.

Model B use's the A_id as it's own primary key value, which is the default 
setting.

I'm able to create records for resource A, but when I attempt to create 
them for resource resource B using the url for A in place of the primary 
key I get the following error:
a_id cannot be null.

My url is something like:
HTTPIE
http http://mysite.com/b/ field_1=abc a=http://mysite.com/a/1

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/6efd5eb5-3129-4d9b-90ff-a5d299242dbb%40googlegroups.com.

Reply via email to