]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/node.py
made it so that spam checks don't require a blog url.
[osqa.git] / forum / models / node.py
index 3a20a3b7d6cef2d67d4aa53e0d423c4409184325..a92dee990b22d29123ba490440663191ce5ae554 100644 (file)
@@ -83,13 +83,13 @@ node_edit = django.dispatch.Signal(providing_args=['instance'])
 class Node(BaseModel, NodeContent, DeletableContent):\r
     __metaclass__ = NodeMetaClass\r
 \r
-    node_type            = models.CharField(max_length=16, default='node')\r
-    parent               = models.ForeignKey('Node', related_name='children', null=True)\r
-    abs_parent           = models.ForeignKey('Node', related_name='all_children', null=True)\r
+    node_type             = models.CharField(max_length=16, default='node')\r
+    parent                = models.ForeignKey('Node', related_name='children', null=True)\r
+    abs_parent            = models.ForeignKey('Node', related_name='all_children', null=True)\r
 \r
-    added_at             = models.DateTimeField(default=datetime.datetime.now)\r
+    added_at              = models.DateTimeField(default=datetime.datetime.now)\r
 \r
-    tags                 = models.ManyToManyField('Tag', related_name='%(class)ss')\r
+    tags                  = models.ManyToManyField('Tag', related_name='%(class)ss')\r
 \r
     score                 = DenormalizedField(default=0)\r
     vote_up_count         = DenormalizedField(default=0)\r
@@ -207,8 +207,6 @@ class Node(BaseModel, NodeContent, DeletableContent):
         api = Akismet()\r
         if api.key is None:\r
             print "problem" # raise APIKeyError\r
-        elif not api.verify_key():\r
-            print "problem" # raise APIKeyError()\r
         else:\r
             if api.comment_check(comment, data):\r
                 return True\r