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