Re: [Django] #35488: BaseModelFormSet.validate_unique() raises unhashable type error for unique fields with unhashable types (was: BaseModelFormSet.validate_unique() raises TypeError unhashable type: 'dict' for JSONFields in a UniqueConstraint)

4 views
Skip to first unread message

Django

unread,
May 29, 2024, 10:55:26 AM5/29/24
to django-...@googlegroups.com
#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.
Reply all
Reply to author
Forward
0 new messages