Skip to content

Commit

Permalink
[#309] Add separate fields for dutch addresses (#329)
Browse files Browse the repository at this point in the history
* [#309] Update model and migrations

* [#309] Create and fix tests

* [#309] Fix admin and schema

* [#309] Update help_text

* [#309] Fix BetrokkeneAdmin

* [#309] Create unique Prefixed_mixin for Adres fields

* [#309] Change huisnummer in charfield

* [#309] Update migrations

* [#309] Update migrations with handle_null_values

* [#309] Fix tests

* [#309] Migrations.RunPython.noop

* [#309] Create migrations tests

* [#309] Update schema

* [#309] Fix validate_postal_code

* [#309] Removed unused lines

* [#309] Fixed validate_postal_code

* [#309] Updated name adresmixin

* [#309] Update migrations

* [#309] Removed unused migrations tests

* [#309] Deleted 'land' field at root level

* [#309] Fixed huisnummer as int
  • Loading branch information
danielmursa-dev authored Mar 4, 2025
1 parent 1e01be8 commit f9e4a7d
Show file tree
Hide file tree
Showing 21 changed files with 1,487 additions and 302 deletions.
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

0 comments on commit f9e4a7d

Please sign in to comment.