-
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.
[#2899] Create MVP configuration model for OpenKlant2
- Loading branch information
Paul Schilling
committed
Jan 7, 2025
1 parent
235d0f0
commit 33b0d88
Showing
4 changed files
with
165 additions
and
49 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
38 changes: 38 additions & 0 deletions
38
src/open_inwoner/openklant/migrations/0016_klanteninteractiesconfig.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,38 @@ | ||
# Generated by Django 4.2.16 on 2025-01-07 11:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("openklant", "0015_openklant2config"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="KlantenInteractiesConfig", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"primary_backend", | ||
models.CharField( | ||
choices=[("esuite", "ESUITE"), ("openklant2", "OPENKLANT2")], | ||
max_length=10, | ||
help_text="Choose the primary backend for retrieving klanten data. Changes to klanten data will be saved to both backends (if configured).", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Configuratie Klanten Interacties", | ||
}, | ||
), | ||
] |
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
10 changes: 10 additions & 0 deletions
10
src/open_inwoner/templates/admin/openklant/klanteninteractiesconfig/change_form.html
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,10 @@ | ||
{% extends "admin/solo/change_form.html" %} | ||
|
||
{% block content %} | ||
<p>Configure the backends for retrieving Klanten data:</p> | ||
<ul> | ||
<li><a href="{% url 'admin:openklant_openklantconfig_change' %}">Configure eSuite backend</a></li> | ||
<li><a href="{% url 'admin:openklant_openklant2config_change' 1 %}">Configure OpenKlant2 backend</a></li> | ||
</ul> | ||
{{ block.super }} | ||
{% endblock content %} |