def filter_for_repository(self, repository):
        return self.filter(
            Q(repository=repository) |
            Q(added_in_filediff__diffset__repository=repository))
Filter results for those on a given repository.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/attachments/managers.py/FileAttachmentManager.filter_for_repository