'Verify that the given position is an integer. If it is not positive, set it to 1.'

def _clean_position(self):

    if (self.position is not None):
        try:
            self.position = max(int(self.position), 1)
        except ValueError:
            raise Http404(u'Position    {}    is    not    an    integer!'.format(self.position))
