Skip to content

Commit

Permalink
Merge pull request #1286 from Amsterdam/improvement/add-nummeraanduid…
Browse files Browse the repository at this point in the history
…ing-id-to-serializer

refactor: reorder fields in AddressSerializer for improved clarity an…
  • Loading branch information
remyvdwereld authored Nov 22, 2024
2 parents 4cfc6a4 + 47d812a commit 5a69628
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/apps/addresses/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,30 @@ class Meta:
model = Address
fields = (
"bag_id",
"id",
"district",
"full_address",
"street_name",
"number",
"suffix_letter",
"suffix",
"postal_code",
"housing_corporation",
"id",
"lat",
"lng",
"full_address",
"district",
"housing_corporation",
"number",
"nummeraanduiding_id",
"postal_code",
"street_name",
"suffix",
"suffix_letter",
)
read_only_fields = (
"district",
"full_address",
"id",
"street_name",
"number",
"suffix_letter",
"suffix",
"postal_code",
"lat",
"lng",
"full_address",
"district",
"number",
"postal_code",
"street_name",
"suffix",
"suffix_letter",
)
extra_kwargs = {"bag_id": {"validators": []}}

Expand Down

0 comments on commit 5a69628

Please sign in to comment.