Skip to content

Merge of r v1.8.x r into v1.9.x - #5415

Merged
mauromsl merged 23 commits into
r-v1.9.xfrom
merge-r-v1.8.x-r-v1.9.x
Jul 30, 2026
Merged

Merge of r v1.8.x r into v1.9.x#5415
mauromsl merged 23 commits into
r-v1.9.xfrom
merge-r-v1.8.x-r-v1.9.x

Conversation

@mauromsl

Copy link
Copy Markdown
Member

No description provided.

gamboz and others added 21 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
mauromsl changed the base branch from master to r-v1.9.x July 30, 2026 10:25
@mauromsl
mauromsl merged commit ad425de into r-v1.9.x Jul 30, 2026
4 checks passed
@mauromsl
mauromsl deleted the merge-r-v1.8.x-r-v1.9.x branch July 30, 2026 11:40
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