'Strips - and spaces, performs country code and checksum validation'

def clean(self, value):

    value = super(ROIBANField, self).clean(value)
    if (value in EMPTY_VALUES):
        return u''
    value = value.replace('-', '')
    value = value.replace('    ', '')
    value = value.upper()
    if (value[0:2] != 'RO'):
        raise ValidationError(self.error_messages['invalid'])
    numeric_format = ''
    for char in (value[4:] + value[0:4]):
        if char.isalpha():
            numeric_format += str((ord(char) - 55))
        else:
            numeric_format += char
    if ((int(numeric_format) % 97) != 1):
        raise ValidationError(self.error_messages['invalid'])
    return value
