|
4 | 4 | from ..detailed.models import Contact as DetailedContact |
5 | 5 | from ..detailed.models import DetailedCase |
6 | 6 |
|
| 7 | +DETAILED_EQUALITY_BODY_COLUMNS_FOR_EXPORT: list[CSVColumn] = [ |
| 8 | + CSVColumn( |
| 9 | + column_header="Enforcement Body", |
| 10 | + source_class=DetailedCase, |
| 11 | + source_attr="enforcement_body", |
| 12 | + ), |
| 13 | + CSVColumn( |
| 14 | + column_header="Test type", |
| 15 | + source_class=DetailedCase, |
| 16 | + source_attr="test_type", |
| 17 | + ), |
| 18 | + CSVColumn( |
| 19 | + column_header="Case number", |
| 20 | + source_class=DetailedCase, |
| 21 | + source_attr="case_number", |
| 22 | + ), |
| 23 | + CSVColumn( |
| 24 | + column_header="Organisation", |
| 25 | + source_class=DetailedCase, |
| 26 | + source_attr="organisation_name", |
| 27 | + ), |
| 28 | + CSVColumn( |
| 29 | + column_header="Website URL", |
| 30 | + source_class=DetailedCase, |
| 31 | + source_attr="home_page_url", |
| 32 | + ), |
| 33 | + CSVColumn( |
| 34 | + column_header="Parent organisation name", |
| 35 | + source_class=DetailedCase, |
| 36 | + source_attr="parental_organisation_name", |
| 37 | + ), |
| 38 | + CSVColumn( |
| 39 | + column_header="Sub-category", |
| 40 | + source_class=DetailedCase, |
| 41 | + source_attr="subcategory", |
| 42 | + ), |
| 43 | + CSVColumn( |
| 44 | + column_header="Website name", |
| 45 | + source_class=DetailedCase, |
| 46 | + source_attr="website_name", |
| 47 | + ), |
| 48 | + CSVColumn( |
| 49 | + column_header="Previous Case Number", |
| 50 | + source_class=DetailedCase, |
| 51 | + source_attr="previous_case_identifier", |
| 52 | + ), |
| 53 | + CSVColumn( |
| 54 | + column_header="Is it a complaint?", |
| 55 | + source_class=DetailedCase, |
| 56 | + source_attr="is_complaint", |
| 57 | + ), |
| 58 | + CSVColumn( |
| 59 | + column_header="Published report", |
| 60 | + source_class=DetailedCase, |
| 61 | + source_attr="equality_body_report_url", |
| 62 | + ), |
| 63 | + CSVColumn( |
| 64 | + column_header="Enforcement recommendation", |
| 65 | + source_class=DetailedCase, |
| 66 | + source_attr="recommendation_for_enforcement", |
| 67 | + ), |
| 68 | + CSVColumn( |
| 69 | + column_header="Enforcement recommendation notes including exemptions", |
| 70 | + source_class=DetailedCase, |
| 71 | + source_attr="recommendation_info", |
| 72 | + ), |
| 73 | + CSVColumn( |
| 74 | + column_header="Summary of progress made / response from PSB", |
| 75 | + source_class=DetailedCase, |
| 76 | + source_attr="psb_progress_info", |
| 77 | + ), |
| 78 | + CSVColumn( |
| 79 | + column_header="Contact details", |
| 80 | + source_class=DetailedCase, |
| 81 | + source_attr="equality_body_export_contact_details", |
| 82 | + ), |
| 83 | + CSVColumn( |
| 84 | + column_header="Organisation responded to report?", |
| 85 | + source_class=DetailedCase, |
| 86 | + source_attr="report_acknowledged_yes_no", |
| 87 | + ), |
| 88 | + CSVColumn( |
| 89 | + column_header="Report sent on", |
| 90 | + source_class=DetailedCase, |
| 91 | + source_attr="report_sent_date", |
| 92 | + ), |
| 93 | + CSVColumn( |
| 94 | + column_header="Report acknowledged", |
| 95 | + source_class=DetailedCase, |
| 96 | + source_attr="report_acknowledged_date", |
| 97 | + ), |
| 98 | + CSVColumn( |
| 99 | + column_header="12-week deadline", |
| 100 | + source_class=DetailedCase, |
| 101 | + source_attr="twelve_week_deadline_date", |
| 102 | + ), |
| 103 | + CSVColumn( |
| 104 | + column_header="Retest date", |
| 105 | + source_class=DetailedCase, |
| 106 | + source_attr="retest_start_date", |
| 107 | + ), |
| 108 | + CSVColumn( |
| 109 | + column_header="Date when compliance decision email sent to public sector body", |
| 110 | + source_class=DetailedCase, |
| 111 | + source_attr="recommendation_decision_sent_date", |
| 112 | + ), |
| 113 | + CSVColumn( |
| 114 | + column_header="Compliance decision email sent to", |
| 115 | + source_class=DetailedCase, |
| 116 | + source_attr="recommendation_decision_sent_to", |
| 117 | + ), |
| 118 | + CSVColumn( |
| 119 | + column_header="Total number of accessibility issues", |
| 120 | + source_class=DetailedCase, |
| 121 | + source_attr="initial_total_number_of_issues", |
| 122 | + ), |
| 123 | + CSVColumn( |
| 124 | + column_header="Number of issues fixed", |
| 125 | + source_class=DetailedCase, |
| 126 | + source_attr="number_of_issues_fixed", |
| 127 | + ), |
| 128 | + CSVColumn( |
| 129 | + column_header="Number of issues unfixed", |
| 130 | + source_class=DetailedCase, |
| 131 | + source_attr="retest_total_number_of_issues", |
| 132 | + ), |
| 133 | + CSVColumn( |
| 134 | + column_header="Issues fixed as a percentage", |
| 135 | + source_class=DetailedCase, |
| 136 | + source_attr="percentage_of_issues_fixed", |
| 137 | + ), |
| 138 | + CSVColumn( |
| 139 | + column_header="Was an accessibility statement found during the 12-week assessment", |
| 140 | + source_class=DetailedCase, |
| 141 | + source_attr="equality_body_export_statement_found_at_retest", |
| 142 | + ), |
| 143 | + CSVColumn( |
| 144 | + column_header="Retest Accessibility Statement Decision", |
| 145 | + source_class=DetailedCase, |
| 146 | + source_attr="retest_statement_compliance_state", |
| 147 | + ), |
| 148 | + CSVColumn( |
| 149 | + column_header="Retest disproportionate burden claimed?", |
| 150 | + source_class=DetailedCase, |
| 151 | + source_attr="retest_disproportionate_burden_claim", |
| 152 | + ), |
| 153 | + CSVColumn( |
| 154 | + column_header="Retest disproportionate burden details", |
| 155 | + source_class=DetailedCase, |
| 156 | + source_attr="retest_disproportionate_burden_information", |
| 157 | + ), |
| 158 | +] |
| 159 | + |
7 | 160 | DETAILED_CASE_COLUMNS_FOR_EXPORT: list[CSVColumn] = [ |
8 | 161 | # General |
9 | 162 | CSVColumn( |
|
0 commit comments