Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#32328 closed New feature (needsinfo)

Add to admin a friendly widget for ArrayField.

Reported by: Sumanth Ratna Owned by: nobody
Component: contrib.admin Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Right now, ArrayFields are rendered as a text input of all the values concatenated by ','. Instead, the Django admin should incorporate functionality similar to https://github.com/gradam/django-better-admin-arrayfield in order to allow users to better edit ArrayFields in the admin panel.

Change History (2)

comment:1 by Mariusz Felisiak, 4 years ago

Resolution: needsinfo
Status: newclosed
Summary: ArrayField in admin should show items as individual form controlsAdd to admin a friendly widget for ArrayField.

Thanks for this patch, however I'm a bit sceptical. I'm not not sure how this could looks like for nested ArrayFields. We a have a similar ticket (#25197) for HStoreField that remains idle for few years. We can reconsider this ticket when someone prepares a proof of concept.

comment:2 by Mariusz Felisiak, 2 years ago

#33714 was a duplicate for ArrayFields where a base_field has choices.

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