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 on unique fields to be non-unique in forms #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjamaan
Copy link

@sjamaan sjamaan commented Mar 20, 2019

The database will allow it, but the validator incorrectly rejects NULL
values on nullable fields which are part of the unique index.

This patch fixes that so the form validations correspond to how the database index is checked.

@sjamaan
Copy link
Author

sjamaan commented Mar 20, 2019

I had a hard time coming up with a somewhat sensible test model, so feel free to change the testapp.

The database will allow it, but the validator incorrectly rejects NULL
values on nullable fields which are part of the unique index.
@sjamaan sjamaan force-pushed the null-uniqueness-validation branch 4 times, most recently from 196fb22 to 666bd58 Compare July 22, 2019 11:36
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.

1 participant