-
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.
[#2940] Add OpenKlant2 configuration model
- Loading branch information
Paul Schilling
committed
Dec 17, 2024
1 parent
1645f79
commit 4fab1ef
Showing
17 changed files
with
432 additions
and
67 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
70 changes: 70 additions & 0 deletions
70
src/open_inwoner/openklant/migrations/0015_openklant2config.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,70 @@ | ||
# Generated by Django 4.2.16 on 2024-12-16 15:09 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("zgw_consumers", "0022_set_default_service_slug"), | ||
("openklant", "0014_contactformconfig"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="OpenKlant2Config", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"mijn_vragen_kanaal", | ||
models.CharField(blank=True, verbose_name="Mijn vragen kanaal"), | ||
), | ||
( | ||
"mijn_vragen_organisatie_naam", | ||
models.CharField( | ||
blank=True, verbose_name="Mijn vragen organisatie naam" | ||
), | ||
), | ||
( | ||
"mijn_vragen_actor", | ||
models.CharField(blank=True, verbose_name="Mijn vragen actor"), | ||
), | ||
( | ||
"interne_taak_gevraagde_handeling", | ||
models.CharField( | ||
blank=True, verbose_name="Interne taak gevraagde handeling" | ||
), | ||
), | ||
( | ||
"interne_taak_toelichting", | ||
models.CharField( | ||
blank=True, verbose_name="Interne taak toelichting" | ||
), | ||
), | ||
( | ||
"service_config", | ||
models.OneToOneField( | ||
blank=True, | ||
limit_choices_to={"api_type": "kc"}, | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="zgw_consumers.service", | ||
verbose_name="Klanten API", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Open Klant configuration", | ||
}, | ||
), | ||
] |
53 changes: 53 additions & 0 deletions
53
.../openklant/migrations/0016_rename_service_config_openklant2config_zgw_service_and_more.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,53 @@ | ||
# Generated by Django 4.2.16 on 2024-12-17 07:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("openklant", "0015_openklant2config"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="openklant2config", | ||
old_name="service_config", | ||
new_name="zgw_service", | ||
), | ||
migrations.AlterField( | ||
model_name="openklant2config", | ||
name="interne_taak_gevraagde_handeling", | ||
field=models.CharField( | ||
blank=True, default="", verbose_name="Interne taak gevraagde handeling" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="openklant2config", | ||
name="interne_taak_toelichting", | ||
field=models.CharField( | ||
blank=True, default="", verbose_name="Interne taak toelichting" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="openklant2config", | ||
name="mijn_vragen_actor", | ||
field=models.CharField( | ||
blank=True, default="", verbose_name="Mijn vragen actor" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="openklant2config", | ||
name="mijn_vragen_kanaal", | ||
field=models.CharField( | ||
blank=True, default="", verbose_name="Mijn vragen kanaal" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="openklant2config", | ||
name="mijn_vragen_organisatie_naam", | ||
field=models.CharField( | ||
blank=True, default="", verbose_name="Mijn vragen organisatie naam" | ||
), | ||
), | ||
] |
Oops, something went wrong.