django-partial-index
django-partial-index copied to clipboard
Allow NULL on unique fields to be non-unique in forms
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.
I had a hard time coming up with a somewhat sensible test model, so feel free to change the testapp.