'Let\'s say we wanted to fill the non-nullable model field inside
Model.save(), we would make it empty and not required.'

def test_foreign_key_not_required(self):

    class ModelSerializer(ForeignKeySourceSerializer, ):
        class Meta(ForeignKeySourceSerializer.Meta, ):
            extra_kwargs = {u'target': {u'required': False}}
    serializer = ModelSerializer(data={u'name': u'test'})
    serializer.is_valid(raise_exception=True)
    assert (u'target' not in serializer.validated_data)
