Open wfdd opened 8 years ago
This appears to be attempting to insert the string representation of ApproximateDate
into a CharField
.
I've patched it up with
class WorseApproximateDate(ApproximateDate):
def __repr__(self):
repr_, *_ = super().__repr__().partition('-00')
return repr_
but then PersonExtra.dob_as_date
can't parse it because
ValueError: day is out of range for month
and at this point I think I'm gonna need a drink ;)
candidates.models.popolo_extra.parse_approximate_date
appends a '-00' to partial dates whichpopolo.behaviors.models.validate_partial_date
can't parse.