Postal addresses: check an address against its country before keeping it, with the kind and Primary first #306
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#306
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the interface review of 2026-09-29:
What is there today
partials/postal_addresses.htmlthe row begins with the address, then the postcode and the town, then the region and the country. The kind and Primary come after them.core/postal.py::label_for).postal.warnings_for) and says so, but it never refuses a save. The model says why: "Valid cannot mean verified" (core/models.py::PostalAddress). Postulo is not going to post anything, and an address typed oddly is still somebody's address.Decisions to take
NNNN-NNN, the Netherlands'NNNN AA) is certainly wrong, and cheap to refuse. Whether the town matches the postcode needs a reference database nobody here wants. Proposal: refuse what the country's format rules out, and warn about the rest as today.Done when