Skip to content

Commit

Permalink
Merge pull request #1544 from open-zaak/feature/1543-remove-resultaat…
Browse files Browse the repository at this point in the history
…toelichting

🔥 [#1543] remove Zaak.resultaattoelichting
  • Loading branch information
annashamray committed Feb 1, 2024
2 parents 824df2b + e398dfb commit 11e53ae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/openzaak/components/zaken/api/serializers/zaken.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ class Meta:
"resultaat",
"opdrachtgevende_organisatie",
"processobjectaard",
"resultaattoelichting",
"startdatum_bewaartermijn",
"processobject",
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-License-Identifier: EUPL-1.2
# Copyright (C) 2024 Dimpact
# Generated by Django 3.2.23 on 2024-01-18 15:08

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("zaken", "0029_auto_20230911_0810"),
]

operations = [
migrations.RemoveField(model_name="zaak", name="resultaattoelichting",),
]
7 changes: 0 additions & 7 deletions src/openzaak/components/zaken/models/zaken.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,6 @@ class Zaak(ETagMixin, AuditTrailMixin, APIMixin, ZaakIdentificatie):
),
)

resultaattoelichting = models.TextField(
_("resultaattoelichting"),
max_length=1000,
blank=True,
help_text=_("Een toelichting op wat het resultaat van de zaak inhoudt."),
)

startdatum_bewaartermijn = models.DateField(
_("startdatum bewaartermijn"),
null=True,
Expand Down
3 changes: 0 additions & 3 deletions src/openzaak/components/zaken/tests/test_zaken.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ def test_create_zaak_with_processobject(self):
"registratiedatum": "2018-12-24",
"startdatum": "2018-12-24",
"processobjectaard": "test object",
"resultaattoelichting": "test result",
"startdatumBewaartermijn": "2019-08-24",
"processobject": {
"datumkenmerk": "test data",
Expand All @@ -608,7 +607,6 @@ def test_create_zaak_with_processobject(self):
zaak = Zaak.objects.get()

self.assertEqual(zaak.processobjectaard, "test object")
self.assertEqual(zaak.resultaattoelichting, "test result")
self.assertEqual(zaak.startdatum_bewaartermijn, date(2019, 8, 24))
self.assertEqual(zaak.processobject_datumkenmerk, "test data")
self.assertEqual(zaak.processobject_identificatie, "12345")
Expand Down Expand Up @@ -706,7 +704,6 @@ def test_create_zaak_with_incorrect_local_zaaktype(self):
"registratiedatum": "2018-12-24",
"startdatum": "2018-12-24",
"processobjectaard": "test object",
"resultaattoelichting": "test result",
"startdatumBewaartermijn": "2019-08-24",
}

Expand Down

0 comments on commit 11e53ae

Please sign in to comment.