def set_flagged(self, *, start_date=None, due_date=None):
self.__status = Flag.Flagged<EOL>start_date = start_date or dt.datetime.now()<EOL>due_date = due_date or dt.datetime.now()<EOL>if start_date.tzinfo is None:<EOL><INDENT>start_date = self.protocol.timezone.localize(start_date)<EOL><DEDENT>if due_date.tzinfo is None:<EOL><INDENT>due_date = self.protocol.timezone.localize(due_date)<EOL><DEDENT>self.__start = start_date<EOL>self.__due_date = due_date<EOL>self._track_changes()<EOL>
Sets this message as flagged
        :param start_date: the start datetime of the followUp
        :param due_date: the due datetime of the followUp