Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#309] Add separate fields for dutch addresses #329

Merged
Merged
12 changes: 10 additions & 2 deletions src/openklant/components/contactgegevens/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ class PersoonAdmin(admin.ModelAdmin):
"geslachtsnaam",
"geboortedatum",
"overlijdensdatum",
"land",
]
},
),
(
_("Adres gegevens"),
{
"fields": [
"adres_straatnaam",
"adres_huisnummer",
"adres_huisnummertoevoeging",
"adres_postcode",
"adres_stad",
"adres_adresregel1",
"adres_adresregel2",
"adres_adresregel3",
Expand All @@ -50,14 +54,18 @@ class OrganisatieAdmin(admin.ModelAdmin):
"handelsnaam",
"oprichtingsdatum",
"opheffingsdatum",
"land",
]
},
),
(
_("Adres gegevens"),
{
"fields": [
"adres_straatnaam",
"adres_huisnummer",
"adres_huisnummertoevoeging",
"adres_postcode",
"adres_stad",
"adres_adresregel1",
"adres_adresregel2",
"adres_adresregel3",
Expand Down
2 changes: 0 additions & 2 deletions src/openklant/components/contactgegevens/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Meta:
"oprichtingsdatum",
"opheffingsdatum",
"adres",
"land",
)
extra_kwargs = {
"uuid": {"read_only": True},
Expand Down Expand Up @@ -71,7 +70,6 @@ class Meta:
"voorvoegsel",
"voornamen",
"adres",
"land",
)
extra_kwargs = {
"uuid": {"read_only": True},
Expand Down
Loading