Selaa lähdekoodia

Fixed missing '@task' decorator in Tasks Userguide documentation. Thanks to
osantana. Closes #89

Ask Solem 15 vuotta sitten
vanhempi
commit
57bd9dce70
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      docs/userguide/tasks.rst

+ 1 - 0
docs/userguide/tasks.rst

@@ -374,6 +374,7 @@ blog/tasks.py
     from blog.models import Comment
 
 
+    @task
     def spam_filter(comment_id, remote_addr=None, **kwargs):
             logger = spam_filter.get_logger(**kwargs)
             logger.info("Running spam filter for comment %s" % comment_id)