'Handling update by POST of the cell.'

def inline_update_action(self, request, datum, cell, obj_id, cell_name):

    new_cell_value = request.POST.get(((cell_name + '__') + obj_id), None)
    if issubclass(cell.column.form_field.__class__, forms.Field):
        try:
            new_cell_value = cell.column.form_field.clean(new_cell_value)
            cell.update_action.action(self.request, datum, obj_id, cell_name, new_cell_value)
            response = {'status': 'updated', 'message': ''}
            return HttpResponse(json.dumps(response), status=200, content_type='application/json')
        except core_exceptions.ValidationError:
            (exc_type, exc_value, exc_traceback) = sys.exc_info()
            response = {'status': 'validation_error', 'message': '    '.join(exc_value.messages)}
            return HttpResponse(json.dumps(response), status=400, content_type='application/json')
