def METHOD_NAME(self, **kwargs):
    can_download_attachments = self.event.cfa.allow_attachments
    if not can_download_attachments:
        can_download_attachments = (AbstractFile.query
                                    .filter(AbstractFile.abstract.has(event=self.event, is_deleted=False))
                                    .has_rows())
    return self.view_class.render_template(self.template, self.event,
                                           can_download_attachments=can_download_attachments, **kwargs)