Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Fixing iexact behaviour - #86

Closed
david-alm wants to merge 1 commit into
encode:masterfrom
david-alm:fix/iexact-wildcard-escape
Closed

david-alm wants to merge 1 commit into
encode:masterfrom
david-alm:fix/iexact-wildcard-escape

Conversation

@david-alm

Copy link
Copy Markdown

This PR fixes the behaviour noted in #85 by ensuring escape characters are properly escaped when using iexact.

TLDR; iexact behaved as a case insensitive LIKE instead of case insensitive exact match.

@xloem xloem mentioned this pull request Aug 9, 2021
Comment thread orm/models.py
has_escaped_character = False

if op in ["contains", "icontains"]:
if op in ["iexact", "contains", "icontains"]:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please provide example/description and tests for this?

@aminalaee

Copy link
Copy Markdown
Contributor

Closing as it does not contain enough info.

@aminalaee aminalaee closed this Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants