From: hernani Date: Tue, 25 May 2010 02:13:33 +0000 (+0000) Subject: two misspeled node states X-Git-Tag: live~810 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/b320ae1fdd45574568c13da6ebd12cefb52e63c4 two misspeled node states git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@321 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/actions/node.py b/forum/actions/node.py index f5aad16..d3057a9 100644 --- a/forum/actions/node.py +++ b/forum/actions/node.py @@ -178,12 +178,12 @@ class WikifyAction(ActionProxy): verb = _("wikified") def process_action(self): - self.node.nstate.wiky = self + self.node.nstate.wiki = self self.node.last_edited = self self.node.update_last_activity(self.user, save=True) def cancel_action(self): - self.node.nstate.wiky = None + self.node.nstate.wiki = None self.node.update_last_activity(self.user, save=True) def describe(self, viewer=None): diff --git a/forum/views/commands.py b/forum/views/commands.py index 4612403..92e9857 100644 --- a/forum/views/commands.py +++ b/forum/views/commands.py @@ -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