def test_update_create_nested_links_persons_serializer(self):
        person_data = {
            "id":"ab1a5788e5bae955c048748fa6af0e97",
            "contact_details":[
                {
                    "id": "a66cb422-eec3-4861-bae1-a64ae5dbde61",
                    "links": [{
                        "url": "http://facebook.com",
                    }]
                }
            ],
        }
        person = Person.objects.language('en').get(id='ab1a5788e5bae955c048748fa6af0e97')
        person_serializer = PersonSerializer(person, data=person_data, partial=True, language='en')
        person_serializer.is_valid()
        self.assertEqual(person_serializer.errors, {})
        person_serializer.save()
        person_ = Person.objects.language('en').get(id='ab1a5788e5bae955c048748fa6af0e97')
        # There should be only 1 links in that contact
        contact = person_.contact_details.language('en').get(id='a66cb422-eec3-4861-bae1-a64ae5dbde61')
        links = contact.links.language('en').filter(url="http://sinarproject.org")
        self.assertEqual(links[0].url, "http://sinarproject.org")