'Given a request, data and a format, deserializes the given data.
It relies on the request properly sending a ``CONTENT_TYPE`` header,
falling back to ``application/json`` if not provided.
Mostly a hook, this uses the ``Serializer`` from ``Resource._meta``.'

def deserialize(self, request, data, format=u'application/json'):

    deserialized = self._meta.serializer.deserialize(data, format=request.META.get(u'CONTENT_TYPE', format))
    return deserialized
