Skip to content

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

@gabn88

Description

@gabn88

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions