def validate(self, value):
        value_too_short = True

        if isinstance(value, basestring):
            if self.min_length >= len(value.strip()):
                value_too_short = False
        else:
            for locale, string in value.items():
                if locale.lower() not in settings.LANGUAGES:
                    raise ValidationError(
                        self.error_messages['unknown_locale'].format(
                            lang_code=repr(locale)))
                if string and (len(string.strip()) >= self.min_length):
                    value_too_short = False
                    break

        if self.min_length and value_too_short:
            raise ValidationError(
                self.error_messages['min_length'].format(num=self.min_length))
dataset/ETHPy150Open mozilla/addons-server/src/olympia/api/fields.py/TranslationSerializerField.validate/swapped operands of `>=`