瀏覽代碼

Fixes typo self -> process_rows

Ask Solem 12 年之前
父節點
當前提交
dd8888150d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -839,7 +839,7 @@ that can be added to tasks like this:
 
     @celery.task(base=DatabaseTask)
     def process_rows():
-        for row in self.db.table.all():
+        for row in process_rows.db.table.all():
             ...
 
 The ``db`` attribute of the ``process_rows`` task will then