예제 #1
0
    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)
예제 #2
0
    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)