From 32f16cbaa349db73be66513671f58a3c6a526622 Mon Sep 17 00:00:00 2001 From: resteve Date: Mon, 15 Dec 2014 11:45:19 +0100 Subject: [PATCH] Default Comment tutorial --- tutorial.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorial.py b/tutorial.py index a4ebfed..4b66ba9 100644 --- a/tutorial.py +++ b/tutorial.py @@ -49,6 +49,10 @@ class GalateaTutorial(ModelSQL, ModelView): Website = Pool().get('galatea.website') return [p.id for p in Website.search([('registration','=',True)])] + @staticmethod + def default_comment(): + return True + @classmethod def __setup__(cls): super(GalateaTutorial, cls).__setup__()