toolware/utils/query.py
def case_insensitive(self, fields_dict):
        """
        Converts queries to case insensitive for special fields.
        """
        if hasattr(self.model, 'CASE_INSENSITIVE_FIELDS'):
            for field in self.model.CASE_INSENSITIVE_FIELDS:
                if field in fields_dict:
                    fields_dict[field + '__iexact'] = fields_dict[field]
                    del fields_dict[field]
def case_insensitive(self, fields_dict):
        """
        Converts queries to case insensitive for special fields.
        """
        if hasattr(self.model, 'CASE_INSENSITIVE_FIELDS'):
            for field in self.model.CASE_INSENSITIVE_FIELDS:
                if field in fields_dict:
                    fields_dict[field + '__iexact'] = fields_dict[field]
                    del fields_dict[field]
def case_insensitive ( self , fields_dict ) : if hasattr ( self . model , 'CASE_INSENSITIVE_FIELDS' ) : for field in self . model . CASE_INSENSITIVE_FIELDS : if field in fields_dict : fields_dict [ field + '__iexact' ] = fields_dict [ field ] del fields_dict [ field ]
Converts queries to case insensitive for special fields.
Converts queries to case insensitive for special fields .