Sfoglia il codice sorgente

Found a mistake in SQL documentation

Christopher Allen-Poole 12 anni fa
parent
commit
a96bff179a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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])