#35488: BaseModelFormSet.validate_unique() raises unhashable type error for unique
fields with unhashable types
-------------------------------------+-------------------------------------
Reporter: Hanne Moa | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 5.0
Severity: Normal | Resolution:
Keywords: JSONField, unique, | Triage Stage: Accepted
formset, json, hashable |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* summary:
BaseModelFormSet.validate_unique() raises TypeError unhashable type:
'dict' for JSONFields in a UniqueConstraint
=>
BaseModelFormSet.validate_unique() raises unhashable type error for
unique fields with unhashable types
Comment:
Yes I agree, thank you Simon 👍
--
Ticket URL: <
https://code.djangoproject.com/ticket/35488#comment:4>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.