summaryrefslogtreecommitdiff
path: root/docs/topics/db/sql.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerJacob Walls <jacobtylerwalls@gmail.com>2026-03-30 15:55:07 -0400
commit0ee44c674cf61efbca2056c40f3e4f2335aaeee6 (patch)
treea27edf3c3c9ee9c50ba78df9e158b28be408a8bb /docs/topics/db/sql.txt
parent89b4d944f7e331e267aa1030e295f29355b78172 (diff)
[5.2.x] Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0 Backport of 6cff02078799b7c683a0d39630d49ab4fe532e7c from main.
Diffstat (limited to 'docs/topics/db/sql.txt')
-rw-r--r--docs/topics/db/sql.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt
index 42143fd118..f55572be0d 100644
--- a/docs/topics/db/sql.txt
+++ b/docs/topics/db/sql.txt
@@ -120,15 +120,14 @@ had ``Person`` data in it, you could easily map it into ``Person`` instances:
.. code-block:: pycon
- >>> Person.objects.raw(
- ... """
+ >>> Person.objects.raw("""
... SELECT first AS first_name,
... last AS last_name,
... bd AS birth_date,
... pk AS id,
... FROM some_other_table
- ... """
- ... )
+ ... """)
+ ...
As long as the names match, the model instances will be created correctly.