Skip to content

mergeback r-v1.8.x into r-v1.9.x - #5414

Closed
mauromsl wants to merge 20 commits into
r-v1.9.xfrom
r-v1.8.x
Closed

mergeback r-v1.8.x into r-v1.9.x#5414
mauromsl wants to merge 20 commits into
r-v1.9.xfrom
r-v1.8.x

Conversation

@mauromsl

Copy link
Copy Markdown
Member

No description provided.

gamboz and others added 20 commits June 23, 2026 09:24
journal.forms import journal.logic which in turns import journal.forms

logic is not used in journal.forms code, so it's a redundant import in
any case

This has not triggered any error just due to a lucky combination of
factors 🙂
postgres_search() builds its final query by wrapping stringify_queryset()
in Article.objects.raw(). stringify_queryset() returns SQL with all params
already interpolated via cursor.mogrify(), so any '%' left in the string is
literal (e.g. a search term like "50%"). raw() defaults params to () rather
than None, so it re-runs %-formatting on that SQL and raised TypeError on
terms containing '%'. Double the literal '%' so they survive that pass.

Adds a regression test covering a '%'-bearing search term.
@mauromsl

Copy link
Copy Markdown
Member Author

superseeded by #5415 for confict resolution

@mauromsl mauromsl closed this Jul 30, 2026
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.

5 participants