Opened 9 years ago

Last modified 5 years ago

#24858 closed New feature

get_foo_display with the ArrayField — at Initial Version

Reported by: Mounir Owned by:
Component: contrib.postgres Version: dev
Severity: Normal Keywords:
Cc: chedi Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I think using ArrayField as a many choices field would be awesome.
Passing choices to ArrayField works fine with MultipleChoiceField on the form.
But calling get_foo_display return a TypeError: unhashable type: 'list', maybe this method need to check if the field is an ArrayField it can return a string representation of the choices separated by comma.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top