瀏覽代碼

Fixed typos in docs/userguide/tasks.rst

fredj 14 年之前
父節點
當前提交
1990d0c924
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/userguide/tasks.rst

+ 2 - 2
docs/userguide/tasks.rst

@@ -329,7 +329,7 @@ blog/views.py
 .. code-block:: python
 
     from django import forms
-    frmo django.http import HttpResponseRedirect
+    from django.http import HttpResponseRedirect
     from django.template.context import RequestContext
     from django.shortcuts import get_object_or_404, render_to_response
 
@@ -644,7 +644,7 @@ re-fetch the article in the task body:
 .. code-block:: python
 
     @task
-    def expand_abbreviations(article_id)
+    def expand_abbreviations(article_id):
         article = Article.objects.get(id=article_id)
         article.body.replace("MyCorp", "My Corporation")
         article.save()