diff --git a/api/cases/migrations/0074_update_licence_decision_denial_reasons.py b/api/cases/migrations/0074_update_licence_decision_denial_reasons.py index 0402cc035..3e88b861a 100644 --- a/api/cases/migrations/0074_update_licence_decision_denial_reasons.py +++ b/api/cases/migrations/0074_update_licence_decision_denial_reasons.py @@ -32,10 +32,6 @@ def update_licencedecision_denial_reasons(apps, schema_editor): .distinct() ) - for denial_reason, licence_decision_id in denial_reasons: - licence_decision = LicenceDecision.objects.get(pk=licence_decision_id) - licence_decision.denial_reasons.add(denial_reason) - updated_cases = set() for denial_reason, licence_decision_id in denial_reasons: licence_decision = LicenceDecision.objects.get(pk=licence_decision_id)