summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2014-09-23 23:17:00 +0200
committerTim Graham <timograham@gmail.com>2014-09-24 07:21:50 -0400
commitae14c75014379d1cf405509b65eb986c0cb3b0f3 (patch)
tree9ab1904ea23550d54041f326a6944b500bb13703 /docs
parentcc74d8e02e8b659b914859d60002aaa47600f0ff (diff)
[1.7.x] Fixed #23426 -- Don't require double percent sign in RunSQL without parameters
Backport of b9a670b227 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/migration-operations.txt5
-rw-r--r--docs/releases/1.7.1.txt3
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
index 171ddd8ee7..dc769dca69 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -192,6 +192,11 @@ operation here so that the autodetector still has an up-to-date state of the
model (otherwise, when you next run ``makemigrations``, it won't see any
operation that adds that field and so will try to run it again).
+.. versionchanged:: 1.7.1
+
+ If you want to include literal percent signs in the query you don't need to
+ double them anymore.
+
.. _sqlparse: https://pypi.python.org/pypi/sqlparse
RunPython
diff --git a/docs/releases/1.7.1.txt b/docs/releases/1.7.1.txt
index 8d8af5c7f2..2467da13bd 100644
--- a/docs/releases/1.7.1.txt
+++ b/docs/releases/1.7.1.txt
@@ -67,3 +67,6 @@ Bugfixes
:meth:`~django.contrib.admin.InlineModelAdmin.get_min_num()` hooks to
:class:`~django.contrib.contenttypes.admin.GenericInlineModelAdmin`
(:ticket:`23539`).
+
+* Made ``migrations.RunSQL`` no longer require percent sign escaping. This is
+ now consistent with ``cursor.execute()`` (:ticket:`23426`).