remove verification_expires from person before deleting
[plcapi.git] / PLC / Persons.py
index 8da70ef..1b66b4f 100644 (file)
@@ -362,8 +362,9 @@ class Person(Row):
 
         # 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['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)