Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
[plcapi.git] / PLC / Persons.py
index 0faa3f8..616cc5a 100644 (file)
@@ -359,6 +359,13 @@ class Person(Row):
 
         # Mark as deleted
         self['deleted'] = True
+
+        # delete will fail if verification_expires exists and isn't validated
+        if 'verification_expires' in self:
+            #self['verification_expires'] = \
+            #self.validate_verification_expires(self['verification_expires'])
+            self.pop('verification_expires')
+
         # don't validate, so duplicates can be consistently removed
         self.sync(commit, validate=False)