mirror of
https://github.com/django/django.git
synced 2025-11-02 12:58:56 +00:00
Found a mistake in SQL documentation
This commit is contained in:
parent
371dbbe6e0
commit
a96bff179a
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ For example::
|
||||||
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
|
|
||||||
def my_custom_sql():
|
def my_custom_sql(self):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
cursor.execute("UPDATE bar SET foo = 1 WHERE baz = %s", [self.baz])
|
cursor.execute("UPDATE bar SET foo = 1 WHERE baz = %s", [self.baz])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue