Ver Fonte

Fixes typo self -> process_rows

Ask Solem há 12 anos atrás
pai
commit
dd8888150d
1 ficheiros alterados com 1 adições e 1 exclusões
  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