def get_js_model_data(self):
        data = {
            'fileAttachmentID': self.obj.pk,
            'fileRevision': self.obj.attachment_revision,
        }

        if self.obj.attachment_history is not None:
            attachments = FileAttachment.objects.filter(
                attachment_history=self.obj.attachment_history)
            data['attachmentRevisionIDs'] = list(
                attachments.order_by('attachment_revision')
                .values_list('pk', flat=True))
            data['numRevisions'] = attachments.count()

        if self.diff_against_obj:
            data['diffCaption'] = self.diff_against_obj.display_name
            data['diffAgainstFileAttachmentID'] = self.diff_against_obj.pk
            data['diffRevision'] = self.diff_against_obj.attachment_revision

            if type(self) != type(self.diff_against_obj.review_ui):
                data['diffTypeMismatch'] = True

        return data
Make a copy of our test PNG file, embed the stager into it,
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/base.py/FileAttachmentReviewUI.get_js_model_data--crossover with--dataset/ETHPy150Open hatRiot/clusterd/src/platform/railo/deployers/thumbnail_inject.py/load_file