'Check that the value is an integer. Floats are rounded.'

def convert(self, value, view):

    if isinstance(value, int):
        return value
    elif isinstance(value, float):
        return int(value)
    else:
        self.fail(u'must    be    a    number', view, True)
