Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when field name collides with filter expression tokens #177

Closed
wants to merge 1 commit into from

Conversation

qge
Copy link

@qge qge commented Nov 17, 2023

When the field name collides with one of the filter expression tokens, e.g. when the field name is day, it will crash.

E.g. holiday_model.objects.get(day='Friday'), this function will trigger using test_day as the filter expression.

When the field name collides with one of the filter expression tokens, e.g. when the field name is `day`, it will crash.

E.g.
`holiday_model.objects.get(day='Friday')`, this function will trigger using `test_day` as the filter expression.
@gasman
Copy link
Contributor

gasman commented Jan 3, 2024

Thanks @qge! Please could you add a test for this?

@gasman
Copy link
Contributor

gasman commented Jan 3, 2024

Actually, just realised that this is a duplicate of #172, so will close this for now (but happy to reopen if you can provide a test).

@gasman gasman closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants