From 83b13f7c5c24356d341789bdd79fd019214fd08f Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 23 Mar 2011 21:20:35 +0000 Subject: [PATCH] Proper fix for validate problem Signed-off-by: Mark Hymers --- daklib/dbconn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 2f18343e..4e5acc21 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -346,11 +346,11 @@ class Validator(MapperExtension): ''' def before_update(self, mapper, connection, instance): - #instance.validate() + instance.validate() return EXT_CONTINUE def before_insert(self, mapper, connection, instance): - #instance.validate() + instance.validate() return EXT_CONTINUE validator = Validator() @@ -2692,7 +2692,7 @@ class Suite(ORMObject): 'overrides_count'] def not_null_constraints(self): - return ['suite_name', 'version'] + return ['suite_name'] def __eq__(self, val): if isinstance(val, str): -- 2.39.5