Browse Source

inconsisted use of task() vs task.

Ask Solem 13 years ago
parent
commit
f04164e730
1 changed files with 2 additions and 2 deletions
  1. 2 2
      celery/task/__init__.py

+ 2 - 2
celery/task/__init__.py

@@ -18,7 +18,7 @@ def task(*args, **kwargs):
 
     .. code-block:: python
 
-        @task()
+        @task
         def refresh_feed(url):
             return Feed.objects.get(url=url).refresh()
 
@@ -51,7 +51,7 @@ def periodic_task(*args, **options):
 
             .. code-block:: python
 
-                @task()
+                @task
                 def refresh_feed(url):
                     return Feed.objects.get(url=url).refresh()