From 1d15871a69dbe20ada6b7617ca5718ca31c3c3bd Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 20 Jan 2013 21:36:02 -0600 Subject: [PATCH] fixed incorrect template validator in wiki, thanks Alan --- VERSION | 2 +- gluon/tools.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index d9780c5a..b6e42296 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.01.20.21.23.26 +Version 2.4.1-alpha.2+timestamp.2013.01.20.21.35.15 diff --git a/gluon/tools.py b/gluon/tools.py index 935828c0..4f2bf5e2 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -5089,7 +5089,8 @@ class Wiki(object): if self.templates: fields.append( Field("from_template", "reference wiki_page", - requires=IS_EMPTY_OR(IS_IN_DB(db(self.templates), + requires=IS_EMPTY_OR(IS_IN_DB(db(self.templates), + db.wiki_page._id, '%(slug)s')), comment=current.T( "Choose Template or empty for new Page")))