def get_prep_value(self, value): """ code to db; Version to int """ if isinstance(value, str): return Version.string_to_int(value) if value is None: return None return int(value)
def get_prep_value(self, value): """ code to db; Version to int """ if isinstance(value, basestring): return Version.string_to_int(value) if value is None: return None return int(value)