Browse Source

Fix syntax error in one example at the Tasks userguide doc.

Tiago Moreira Vieira 9 years ago
parent
commit
fcf9763d58
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/userguide/tasks.rst

+ 2 - 1
docs/userguide/tasks.rst

@@ -1622,7 +1622,8 @@ blog/tasks.py
 
         comment = Comment.objects.get(pk=comment_id)
         current_domain = Site.objects.get_current().domain
-        akismet = Akismet(settings.AKISMET_KEY, 'http://{0}'.format(domain))
+        akismet = Akismet(settings.AKISMET_KEY,
+                          'http://{0}'.format(current_domain))
         if not akismet.verify_key():
             raise ImproperlyConfigured('Invalid AKISMET_KEY')