@property
    def num_revisions(self):
        return FileAttachment.objects.filter(
            attachment_history=self.attachment_history_id).count() - 1
Return the number of revisions of this attachment.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/attachments/models.py/FileAttachment.num_revisions