1
0
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:
Christopher Allen-Poole 2013-05-05 10:22:25 -04:00 committed by Simon Charette
parent 371dbbe6e0
commit a96bff179a

View File

@ -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])