can now delete accounts that still have a pending verification
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 25 Jul 2011 18:07:34 +0000 (14:07 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 25 Jul 2011 18:07:34 +0000 (14:07 -0400)
PLC/Persons.py

index d5f1533..8da70ef 100644 (file)
@@ -359,6 +359,12 @@ 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'])
+
         # don't validate, so duplicates can be consistently removed
         self.sync(commit, validate=False)