mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Found a mistake in SQL documentation
This commit is contained in:
parent
371dbbe6e0
commit
a96bff179a
@ -211,7 +211,7 @@ For example::
|
||||
|
||||
from django.db import connection
|
||||
|
||||
def my_custom_sql():
|
||||
def my_custom_sql(self):
|
||||
cursor = connection.cursor()
|
||||
|
||||
cursor.execute("UPDATE bar SET foo = 1 WHERE baz = %s", [self.baz])
|
||||
|
Loading…
Reference in New Issue
Block a user