You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use multi-table inheritance then validate_partial_unique() doesn't work if Meta is overridden by the child; any uniqueness constraints on the parent model will be ignored even though they are present in the database.
In 2.2 (when django added native support for partial indexes), validate_unique() didn't change, but _get_unique_checksgives up entirely on trying to validate the constraints ("Partial unique constraints can't be validated")
In other words, there's no forward compatibility to be aware of, but traversing the Meta classes in the MRO is consistent with existing django behaviour for non-partial uniqueness.
If you use multi-table inheritance then
validate_partial_unique()
doesn't work ifMeta
is overridden by the child; any uniqueness constraints on the parent model will be ignored even though they are present in the database.django-partial-index/partial_index/mixins.py
Line 58 in a5ddf7a
The text was updated successfully, but these errors were encountered: