def get_form_kwargs(self):
        data = self.deserialize(self.request, self.request.body)
        kwargs = {'data': data}
        try:
            kwargs['instance'] = self.get_instance(data)
        except __HOLE__:
            pass
        return kwargs
dataset/ETHPy150Open bogdal/django-gcm/gcm/resources.py/DeviceResource.get_form_kwargs