@property
    def is_from_diff(self):
        return (self.repository_id is not None or
                self.added_in_filediff_id is not None)
Return if this file attachment is associated with a diff.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/attachments/models.py/FileAttachment.is_from_diff