Skip to content

Commit 7da4e3c

Browse files
committed
chore(dref): remove skip_fields from dref translation
1 parent ce100f5 commit 7da4e3c

File tree

1 file changed

+0
-103
lines changed

1 file changed

+0
-103
lines changed

dref/translation.py

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -45,43 +45,11 @@ class DrefTO(TranslationOptions):
4545
"communication",
4646
"risk_security_concern",
4747
)
48-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
49-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
50-
skip_fields = (
51-
"ns_request_text",
52-
"dref_recurrent_text",
53-
"lessons_learned",
54-
"child_safeguarding_risk_level",
55-
"event_description",
56-
"anticipatory_actions",
57-
"event_scope",
58-
"national_authorities",
59-
"ifrc",
60-
"icrc",
61-
"partner_national_society",
62-
"un_or_other_actor",
63-
"major_coordination_mechanism",
64-
"identified_gaps",
65-
"people_assisted",
66-
"selection_criteria",
67-
"operation_objective",
68-
"response_strategy",
69-
"human_resource",
70-
"is_volunteer_team_diverse",
71-
"surge_personnel_deployed",
72-
"logistic_capacity_of_ns",
73-
"pmer",
74-
"communication",
75-
"risk_security_concern",
76-
)
7748

7849

7950
@register(DrefFile)
8051
class DrefFileTO(TranslationOptions):
8152
fields = ("caption",)
82-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
83-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
84-
skip_fields = ("caption",)
8553

8654

8755
@register(DrefFinalReport)
@@ -106,26 +74,6 @@ class DrefFinalReportTO(TranslationOptions):
10674
"national_society_conducted_description",
10775
"financial_report_description",
10876
)
109-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
110-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
111-
skip_fields = (
112-
"event_description",
113-
"anticipatory_actions",
114-
"event_scope",
115-
"ifrc",
116-
"icrc",
117-
"partner_national_society",
118-
"national_authorities",
119-
"un_or_other_actor",
120-
"selection_criteria",
121-
"operation_objective",
122-
"response_strategy",
123-
"major_coordination_mechanism",
124-
"risk_security_concern",
125-
"event_text",
126-
"national_society_conducted_description",
127-
"financial_report_description",
128-
)
12977

13078

13179
@register(DrefOperationalUpdate)
@@ -155,29 +103,6 @@ class DrefOperationalUpdateTO(TranslationOptions):
155103
"pmer",
156104
"communication",
157105
)
158-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
159-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
160-
skip_fields = (
161-
"event_scope",
162-
"ifrc",
163-
"icrc",
164-
"partner_national_society",
165-
"national_authorities",
166-
"un_or_other_actor",
167-
"major_coordination_mechanism",
168-
"people_assisted",
169-
"selection_criteria",
170-
"operation_objective",
171-
"response_strategy",
172-
"risk_security_concern",
173-
"anticipatory_to_response",
174-
"human_resource",
175-
"is_volunteer_team_diverse",
176-
"surge_personnel_deployed",
177-
"logistic_capacity_of_ns",
178-
"pmer",
179-
"communication",
180-
)
181106

182107

183108
@register(IdentifiedNeed)
@@ -186,20 +111,11 @@ class IdentifiedNeedTO(TranslationOptions):
186111
"title",
187112
"description",
188113
)
189-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
190-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
191-
skip_fields = (
192-
"title",
193-
"description",
194-
)
195114

196115

197116
@register(NationalSocietyAction)
198117
class NationalSocietyActionTO(TranslationOptions):
199118
fields = ("description",)
200-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
201-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
202-
skip_fields = ("description",)
203119

204120

205121
@register(PlannedIntervention)
@@ -212,24 +128,11 @@ class PlannedInterventionTO(TranslationOptions):
212128
"challenges",
213129
"lessons_learnt",
214130
)
215-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
216-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
217-
skip_fields = (
218-
"title",
219-
"description",
220-
"progress_towards_outcome",
221-
"narrative_description_of_achievements",
222-
"challenges",
223-
"lessons_learnt",
224-
)
225131

226132

227133
@register(PlannedInterventionIndicators)
228134
class PlannedInterventionIndicatorsTO(TranslationOptions):
229135
fields = ("title",)
230-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
231-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
232-
skip_fields = ("title",)
233136

234137

235138
@register(RiskSecurity)
@@ -238,9 +141,3 @@ class RiskSecurityTO(TranslationOptions):
238141
"risk",
239142
"mitigation",
240143
)
241-
# NOTE: Adding skip_fields temporarily to avoid removing previously translated data
242-
# TODO(sudip): Remove skip_fields after dref translation feature is implemented
243-
skip_fields = (
244-
"risk",
245-
"mitigation",
246-
)

0 commit comments

Comments
 (0)