Update tests for % change in 5.0
Review Request #14748 — Created Dec. 23, 2025 and updated — Latest diff uploaded
Django 5.0 changed its handling of % characters for mysql and postgres,
and these are no longer duplicated in the SQL. This change adds
conditions in the test data to handle this.
Ran unit tests.