code: def add_flag(self, flag):
          
          super(Entry, self).add_flag(flag)
          self._changed_attrs.add('flags')
docs: Add flag to the flags and memorize this attribute has changed so we can
          regenerate it when outputting text.