From: Mark Hymers Date: Wed, 23 Mar 2011 21:20:35 +0000 (+0000) Subject: Proper fix for validate problem X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=83b13f7c5c24356d341789bdd79fd019214fd08f;p=dak.git Proper fix for validate problem Signed-off-by: Mark Hymers --- 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):