-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🗃️ [#61] created Partij, Persoon, ContactPersoon and Organisatie models
- Loading branch information
1 parent
19da052
commit 0ef7106
Showing
7 changed files
with
763 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,5 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class KlantinteractiesConfig(AppConfig): | ||
name = "openklant.components.klantinteracties" |
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,60 @@ | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
from djchoices import ChoiceItem, DjangoChoices | ||
|
||
|
||
# TODO: change value when document gets updated: | ||
# https://vng-realisatie.github.io/klantinteracties/informatiemodel/gegevenswoordenboek#detail_class_Model_Initiator | ||
class Initiator(DjangoChoices): | ||
gemeente = ChoiceItem("gemeente", _("Gemeente")) | ||
klant = ChoiceItem("klant", _("Klant")) | ||
vertegenwoordiger = ChoiceItem("vertegenwoordiger", _("Vertegenwoordiger")) | ||
|
||
|
||
class Taakstatus(DjangoChoices): | ||
te_verwerken = ChoiceItem("te_verwerken", _("Het verzoek is afgehandeld.")) | ||
verwerkt = ChoiceItem("verwerkt", _("Het verzoek id buiten behandeling gesteld.")) | ||
|
||
|
||
class SoortBezoekadres(DjangoChoices): | ||
binnenlands_adres = ChoiceItem("binnenlands_adres", _("Binnenlands adres")) | ||
buitenlands_adres = ChoiceItem("binnenlands_adres", _("Buitenlands adres")) | ||
|
||
|
||
class AanduidingBijHuisnummer(DjangoChoices): | ||
bij = ChoiceItem("bij", _("Bij")) | ||
tegenover = ChoiceItem("tegenover", _("Tegenover")) | ||
|
||
|
||
class SoortCorrespondentieadres(DjangoChoices): | ||
postbusnummer = ChoiceItem("postbusnummer", _("Postbusnummer")) | ||
antwoordnummer = ChoiceItem("antwoordnummer", _("Antwoordnummer")) | ||
binnenlands_adres = ChoiceItem("binnenlands_adres", _("Binnenlands adres")) | ||
buitenlands_adres = ChoiceItem("buitenlands_adres", _("Buitenlands adres")) | ||
|
||
|
||
class SoortActor(DjangoChoices): | ||
medewerker = ChoiceItem("medewerker", _("Medewerker")) | ||
geautomatiseerde_actor = ChoiceItem( | ||
"geautomatiseerde_actor", _("Geautomatiseerde actor") | ||
) | ||
organisatorische_eenheid = ChoiceItem( | ||
"organisatorische_eenheid", _("Organisatorische eenheid") | ||
) | ||
|
||
|
||
class SoortInhoudsdeel(DjangoChoices): | ||
informatieobject = ChoiceItem("informatieobject", _("Informatieobject")) | ||
overig_object = ChoiceItem("overig_object", _("Overig object")) | ||
tekst = ChoiceItem("tekst", _("Tekst")) | ||
|
||
|
||
class SoortPartij(DjangoChoices): | ||
persoon = ChoiceItem("persoon", _("Persoon")) | ||
organisatie = ChoiceItem("organisatie", _("Organisatie")) | ||
contactpersoon = ChoiceItem("contactpersoon", _("Contactpersoon")) | ||
|
||
|
||
class Klantcontrol(DjangoChoices): | ||
vertegenwoordiger = ChoiceItem("vertegenwoordiger", _("Vertegenwoordiger")) | ||
klant = ChoiceItem("klant", _("Klant")) |
Oops, something went wrong.