Browse Source

Found a mistake in SQL documentation

Christopher Allen-Poole 12 years ago
parent
commit
a96bff179a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/topics/db/sql.txt

+ 1 - 1
docs/topics/db/sql.txt

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