Opened 8 years ago

Last modified 16 months ago

#25197 new New feature

Add a more friendly widget for HStoreField

Reported by: gam_phon Owned by:
Component: contrib.admin Version: dev
Severity: Normal Keywords: widget
Cc: Marc Tamlyn, someuniquename@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: yes


Creating a new widget for HStoreField to be used and to be friendly.

Example, which django-hstore is using in the admin :

I think it is good to consider. right now it is a textarea and you should write the value in dictionary format.


Change History (12)

comment:1 Changed 8 years ago by gam_phon

comment:2 Changed 8 years ago by gam_phon

Version: 1.8master

comment:3 Changed 8 years ago by Tim Graham

Cc: Marc Tamlyn added
Easy pickings: unset
Summary: Widget for HStoreFieldAdd a more friendly widget for HStoreField
Triage Stage: UnreviewedAccepted

Marc, your thoughts on this?

comment:4 Changed 8 years ago by Marc Tamlyn

A good admin widget for HStore, as with ArrayField would be good. Both require javascript, which is less of a problem now we can test it.

In django-hstore I think you have to customise the widget yourself, it may be nice if there was a way to extend the admin site to choose a different form field/widget automatically, but this may be unnecessary and is a more difficult problem to solve.

We can't easily include django-hstore's widget directly as it uses underscore templating.

comment:5 Changed 8 years ago by Curtis Maloney

I ran into this recently, and found django-hstore's widget a trivial drop in that did the job.

I'm happy to work on re-engineering it to remove the other dependencies, if nobody objects.

comment:6 Changed 8 years ago by Curtis Maloney

Owner: set to Curtis Maloney
Status: newassigned

comment:7 Changed 7 years ago by Brian Krische

So is this feature would be really nice. But judging by the lack of activity, should I assume it's dead?

comment:8 Changed 7 years ago by Tim Graham

As I recall, FunkyBob got discouraged at the lack of feedback on the django-developers thread.

comment:9 Changed 7 years ago by Tim Graham

Has patch: set
Patch needs improvement: set

comment:10 Changed 6 years ago by Evstifeev Roman

Cc: someuniquename@… added

add someuniquename@… to cc list

comment:11 Changed 2 years ago by Mariusz Felisiak

Component: contrib.postgrescontrib.admin

comment:12 Changed 16 months ago by Mariusz Felisiak

Owner: Curtis Maloney deleted
Status: assignednew
Note: See TracTickets for help on using tickets.
Back to Top