]> git.decadent.org.uk Git - dak.git/commitdiff
Proper fix for validate problem
authorMark Hymers <mhy@debian.org>
Wed, 23 Mar 2011 21:20:35 +0000 (21:20 +0000)
committerMark Hymers <mhy@debian.org>
Wed, 23 Mar 2011 21:20:35 +0000 (21:20 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 2f18343e974bd459fce862cddf9c89acdd0b2ea2..4e5acc216ee3d639d6be5e9afebdea74107e9b65 100755 (executable)
@@ -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):