-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #826 from maykinmedia/feature/1792-zaaktype-result…
…aattype-config ✨ [#1792] Add ZaakTypeResultaatType config
- Loading branch information
Showing
8 changed files
with
350 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/open_inwoner/openzaak/migrations/0027_zaaktype_resultaattype_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Generated by Django 3.2.20 on 2023-10-26 10:05 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_better_admin_arrayfield.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("openzaak", "0026_zaaktypestatustypeconfig_document_upload_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="ZaakTypeResultaatTypeConfig", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"resultaattype_url", | ||
models.URLField(max_length=1000, verbose_name="Resultaattype URL"), | ||
), | ||
( | ||
"omschrijving", | ||
models.CharField(max_length=20, verbose_name="Omschrijving"), | ||
), | ||
( | ||
"zaaktype_uuids", | ||
django_better_admin_arrayfield.models.fields.ArrayField( | ||
base_field=models.UUIDField(verbose_name="Zaaktype UUID"), | ||
default=list, | ||
size=None, | ||
), | ||
), | ||
( | ||
"description", | ||
models.TextField( | ||
blank=True, | ||
default="", | ||
help_text="Determines the text that will be shown to the user if a case is set to this result", | ||
verbose_name="Frontend description", | ||
), | ||
), | ||
( | ||
"zaaktype_config", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="openzaak.zaaktypeconfig", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Zaaktype Resultaattype Configuration", | ||
}, | ||
), | ||
migrations.AddConstraint( | ||
model_name="zaaktyperesultaattypeconfig", | ||
constraint=models.UniqueConstraint( | ||
fields=("zaaktype_config", "resultaattype_url"), | ||
name="unique_zaaktype_config_resultaattype_url", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.