-
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 #1529 from maykinmedia/task/2940-openklant2-config
[#2940] Add OpenKlant2 configuration model
- Loading branch information
Showing
20 changed files
with
191 additions
and
136 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
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 |
---|---|---|
|
@@ -62,7 +62,7 @@ class CasesContactFormTestCase(AssertMockMatchersMixin, ClearCachesMixin, WebTes | |
def setUp(self): | ||
super().setUp() | ||
|
||
self.user = DigidUserFactory(bsn="900222086") | ||
self.user = DigidUserFactory(bsn="900222086", email="[email protected]") | ||
|
||
# services | ||
self.api_group = ZGWApiGroupConfigFactory( | ||
|
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
75 changes: 75 additions & 0 deletions
75
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,75 @@ | ||
# Generated by Django 4.2.16 on 2024-12-18 13:21 | ||
|
||
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, default="", verbose_name="Mijn vragen kanaal" | ||
), | ||
), | ||
( | ||
"mijn_vragen_organisatie_naam", | ||
models.CharField( | ||
blank=True, | ||
default="", | ||
verbose_name="Mijn vragen organisatie naam", | ||
), | ||
), | ||
( | ||
"mijn_vragen_actor", | ||
models.CharField( | ||
blank=True, default="", verbose_name="Mijn vragen actor" | ||
), | ||
), | ||
( | ||
"interne_taak_gevraagde_handeling", | ||
models.CharField( | ||
blank=True, | ||
default="", | ||
verbose_name="Interne taak gevraagde handeling", | ||
), | ||
), | ||
( | ||
"interne_taak_toelichting", | ||
models.CharField( | ||
blank=True, default="", verbose_name="Interne taak toelichting" | ||
), | ||
), | ||
( | ||
"service", | ||
models.OneToOneField( | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="zgw_consumers.service", | ||
verbose_name="Klanten API", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "OpenKlant2 configuration", | ||
}, | ||
), | ||
] |
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
Oops, something went wrong.