Skip to content

Commit

Permalink
Merge pull request #563 from maykinmedia/issue/1296-make-specific-ope…
Browse files Browse the repository at this point in the history
…nzaakconfig-fields-optional

[#1296] Make openzaak,catalogi,documenten,formulieren api fields in OpenZaakConfig optional
  • Loading branch information
alextreme authored Apr 3, 2023
2 parents f2e590f + 7a79c1b commit 1de1a80
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
67 changes: 67 additions & 0 deletions src/open_inwoner/openzaak/migrations/0017_auto_20230331_1418.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Generated by Django 3.2.15 on 2023-03-31 12:18

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("zgw_consumers", "0016_auto_20220818_1412"),
("openzaak", "0016_alter_zaaktypeconfig_document_upload_enabled"),
]

operations = [
migrations.AlterField(
model_name="openzaakconfig",
name="catalogi_service",
field=models.OneToOneField(
blank=True,
limit_choices_to={"api_type": "ztc"},
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="+",
to="zgw_consumers.service",
verbose_name="Catalogi API",
),
),
migrations.AlterField(
model_name="openzaakconfig",
name="document_service",
field=models.OneToOneField(
blank=True,
limit_choices_to={"api_type": "drc"},
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="+",
to="zgw_consumers.service",
verbose_name="Documents API",
),
),
migrations.AlterField(
model_name="openzaakconfig",
name="form_service",
field=models.OneToOneField(
blank=True,
limit_choices_to={"api_type": "orc"},
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="+",
to="zgw_consumers.service",
verbose_name="Form API",
),
),
migrations.AlterField(
model_name="openzaakconfig",
name="zaak_service",
field=models.OneToOneField(
blank=True,
limit_choices_to={"api_type": "zrc"},
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="+",
to="zgw_consumers.service",
verbose_name="Open Zaak API",
),
),
]
4 changes: 4 additions & 0 deletions src/open_inwoner/openzaak/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class OpenZaakConfig(SingletonModel):
on_delete=models.PROTECT,
limit_choices_to={"api_type": APITypes.zrc},
related_name="+",
blank=True,
null=True,
)
zaak_max_confidentiality = models.CharField(
Expand All @@ -67,6 +68,7 @@ class OpenZaakConfig(SingletonModel):
on_delete=models.PROTECT,
limit_choices_to={"api_type": APITypes.ztc},
related_name="+",
blank=True,
null=True,
)
document_service = models.OneToOneField(
Expand All @@ -75,6 +77,7 @@ class OpenZaakConfig(SingletonModel):
on_delete=models.PROTECT,
limit_choices_to={"api_type": APITypes.drc},
related_name="+",
blank=True,
null=True,
)
document_max_confidentiality = models.CharField(
Expand Down Expand Up @@ -103,6 +106,7 @@ class OpenZaakConfig(SingletonModel):
on_delete=models.PROTECT,
limit_choices_to={"api_type": APITypes.orc},
related_name="+",
blank=True,
null=True,
)

Expand Down

0 comments on commit 1de1a80

Please sign in to comment.