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

[#232] use an enum for soortDigitaalAdres #270

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

SonnyBA
Copy link
Contributor

@SonnyBA SonnyBA commented Oct 18, 2024

Fixes #232

Changes

Changes allowed values for soortDigitaalAdres to be one of email, telefoonnummer or overig

@SonnyBA SonnyBA self-assigned this Oct 18, 2024
@SonnyBA SonnyBA force-pushed the issue/#232-add-soort-digitaal-adres-enum branch from cf324a2 to 1b1a721 Compare October 18, 2024 10:59
@SonnyBA SonnyBA marked this pull request as ready for review October 18, 2024 11:28
@@ -36,6 +37,7 @@ class DigitaalAdres(APIMixin, models.Model):
"met dit adres contact kan worden opgenomen."
),
max_length=255,
choices=SoortDigitaalAdres.choices,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue also mentions:

Add an 'overig' (other) option with the option to add a custom type of digital address.

So we might have to add an extra field in which this custom type can be specified?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be because of the wording but I think it refers to having an overig option to allow the adres field to contain other values than that of the email/telefoonnummer types.

@stevenbal stevenbal merged commit 8edfb3e into master Oct 18, 2024
16 checks passed
@stevenbal stevenbal deleted the issue/#232-add-soort-digitaal-adres-enum branch October 18, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fixed set of values for 'soort digitaal adres' (ENUM)
2 participants