'Converts value to a backend-specific value.'

def get_db_prep_value(self, value, connection, prepared=False):

    if (not prepared):
        value = self.get_prep_value(value)
    if (value == ''):
        return None
    else:
        return value
