(self, item)
For forms and modules, set contains_changes to True
        For questions, set the form's contains_changes attribute to True

        This is used for the "View Changed Items" filter in the UI
For forms and modules, set contains_changes to True
        For questions, set the form's contains_changes attribute to True
For forms and modules set contains_changes to True For questions set the form s contains_changes attribute to True
def _set_contains_changes(self, item):
        """For forms and modules, set contains_changes to True
        For questions, set the form's contains_changes attribute to True

        This is used for the "View Changed Items" filter in the UI
        """
        try:
            item.changes.contains_changes = True
            if isinstance(item, _FormMetadataQuestion):
                for form in [self._first_forms_by_id.get(item['form_id']),
                             self._second_forms_by_id.get(item['form_id'])]:
                    if form:
                        form.changes.contains_changes = True
        except AttributeError:
            pass
def _set_contains_changes ( self , item ) : try : item . changes . contains_changes = True if isinstance ( item , _FormMetadataQuestion ) : for form in [ self . _first_forms_by_id . get ( item [ 'form_id' ] ) , self . _second_forms_by_id . get ( item [ 'form_id' ] ) ] : if form : form . changes . contains_changes = True except AttributeError : pass