(self)
return any(isinstance(a, Attachment) for a in self.attachments_list)
Return true if this form has unsaved attachments else false
Return true if this form has unsaved attachments else false
Return true if this form has unsaved attachments else false
def has_unsaved_attachments(self):
        """Return true if this form has unsaved attachments else false"""
        return any(isinstance(a, Attachment) for a in self.attachments_list)
def has_unsaved_attachments ( self ) : return any ( isinstance ( a , Attachment ) for a in self . attachments_list )