If anyone arrives here, I fixed this by marking setting the 'photo' 
serializer field as 'required': False and 'allow_null': True, plus adding:

def perform_create(self, serializer):
    return serializer.save(photo=self.request.data('upload_image'))

I have no idea why, but it's important to leave 'photo' data field as 
blank, and upload the image using another field, in this example: 
'upload_image'.

Hope it helps some space cowboy.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to