Follow-up Comment #1, bug #45350 (project health):
I have run onto the same problem. I do not think, though, that making father
or mother mandatory is a good solution, because it is very common to have
birth certificates without a father and, sometimes, without even a mother.
This can happen for many reasons: parents are unknown, abandoned child,
incomplete registration procedures, etc. I think the best solution would be to
treat the exception, something like:
def get_father(self, name):
if (self.birth_certificate):
try:
return self.birth_certificate.father.id
except SomeError:
pass
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45350>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/