From 4d5ee5be90e7033c303b0e96e78141463d1ab032 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 25 Jul 2011 14:07:34 -0400 Subject: [PATCH] can now delete accounts that still have a pending verification --- PLC/Persons.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PLC/Persons.py b/PLC/Persons.py index d5f1533..8da70ef 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -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) -- 2.43.0