def save(self, *args, **kwargs):
        """
        If date of death is specified, set is_deceased to true
        """
        if self.date_of_death != None:
            self.is_deceased = True
            
        # Since we often copy and paste names from strange sources, do some basic cleanup
        self.first_name = self.first_name.strip()
        self.last_name = self.last_name.strip()
        self.other_names = self.other_names.strip()
        
        # Call save method
        super(Person, self).save(*args, **kwargs)
def save ( self , * args , ** kwargs ) : if self . date_of_death != None : self . is_deceased = True self . first_name = self . first_name . strip ( ) self . last_name = self . last_name . strip ( ) self . other_names = self . other_names . strip ( ) super ( Person , self ) . save ( * args , ** kwargs )
If date of death is specified, set is_deceased to true