]> git.openstreetmap.org Git - osqa.git/commitdiff
two misspeled node states
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 25 May 2010 02:13:33 +0000 (02:13 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 25 May 2010 02:13:33 +0000 (02:13 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@321 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/actions/node.py
forum/views/commands.py

index f5aad160ec6535f835478a26ed4d7704cd637f54..d3057a9b2c35e35895a81e4de00b480c1cba2b78 100644 (file)
@@ -178,12 +178,12 @@ class WikifyAction(ActionProxy):
     verb = _("wikified")\r
 \r
     def process_action(self):\r
-        self.node.nstate.wiky = self\r
+        self.node.nstate.wiki = self\r
         self.node.last_edited = self\r
         self.node.update_last_activity(self.user, save=True)\r
 \r
     def cancel_action(self):\r
-        self.node.nstate.wiky = None\r
+        self.node.nstate.wiki = None\r
         self.node.update_last_activity(self.user, save=True)\r
 \r
     def describe(self, viewer=None):\r
index 461240344dfd4bb387aa06821a4e6c9101d4273b..92e985796e25900c834414142b2b9751d7d855e9 100644 (file)
@@ -362,7 +362,7 @@ def close(request, id, close):
 def wikify(request, id):
     node = get_object_or_404(Node, id=id)
 
-    if node.nis.wiky:
+    if node.nis.wiki:
         raise CommandException(_("This post is already marked as community wiky."))
 
     user = request.user