@@ -0,0 +1,1633 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.11.29 on 2021-09-01 15:53%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0AREPORT_NAME = 'eutf-common-output-indicators'%0ARESULT_TITLE = 'EUTF Common Output Indicators'%0A%0Adef make_report(apps, schema_editor):%0A    Report = apps.get_model('rsr', 'Report')%0A    ReportFormat = apps.get_model('rsr', 'ReportFormat')%0A    Organisation = apps.get_model('rsr', 'Organisation')%0A    Result = apps.get_model('rsr', 'Result')%0A%0A    eutf = Organisation.objects.filter(id=3394).first()%0A    common_output_result = Result.objects.filter(project_id=4401, title=RESULT_TITLE).first()%0A%0A    if common_output_result is None:%0A        print(f%22Specified result '%7BRESULT_TITLE%7D' not found. Skipping Report Creation.%22)%0A        return%0A%0A    result_id = common_output_result.id%0A    url = f%22/py-reports/program/%7B%7Bprogram%7D%7D/eutf-common-output-indicators-table/%7Bresult_id%7D?format=%7B%7Bformat%7D%7D&download=true%22%0A%0A    new_report = Report.objects.create(%0A        name=REPORT_NAME,%0A        title=f'%7BRESULT_TITLE%7D Export',%0A        description=%22An export of the common output indicators data for all of the projects within EUTF organisation.%22,%0A        url=url%0A    )%0A%0A    new_report.formats.add(ReportFormat.objects.get(name='excel'))%0A    new_report.organisations.add(eutf)%0A%0A%0Adef drop_report(apps, schema_editor):%0A    Report = apps.get_model('rsr', 'Report')%0A    Report.objects.filter(name=REPORT_NAME).delete()%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('rsr', '0213_auto_20210531_1056'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(make_report, drop_report)%0A    %5D%0A

Add migration file missing from the previous commit