def METHOD_NAME(self, user=None):
    if (
        self.nominee
        and user == self.nominee.user
        and self.election.nominations_open
    ):
        return True
    if (
        user == self.nominator
        and not (self.accepted or self.approved)
        and self.election.nominations_open
    ):
        return True
    return False