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

Allow null=True on a models.CountryField with multiple=True #452

Open
gabn88 opened this issue Jan 11, 2024 · 0 comments
Open

Allow null=True on a models.CountryField with multiple=True #452

gabn88 opened this issue Jan 11, 2024 · 0 comments

Comments

@gabn88
Copy link

gabn88 commented Jan 11, 2024

We need a Nullable CountryField with multiple=True due to some required denormalisation in the database in combination with a unique_together (NULL is treated different for unique then '', where there can be multiple NULL values, but only one '').

So instead of storing '', we need to store NULL. This is currently not possible due to an check on the model. Would it be possible to remove this error and make it a warning instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants