Opened 2 years ago

Last modified 5 months ago

#25197 assigned New feature

Add a more friendly widget for HStoreField

Reported by: gam_phon Owned by: Curtis Maloney
Component: contrib.postgres Version: master
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

Description

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

Example, which django-hstore is using in the admin :
https://djangonauts.github.io/django-hstore/images/deafult-admin-widget.png

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

Thanks

Change History (10)

comment:1 Changed 2 years ago by gam_phon

comment:2 Changed 2 years ago by gam_phon

Version: 1.8master

comment:3 Changed 2 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 2 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 2 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 2 years ago by Curtis Maloney

Owner: set to Curtis Maloney
Status: newassigned

comment:7 Changed 19 months 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 19 months ago by Tim Graham

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

comment:9 Changed 19 months ago by Tim Graham

Has patch: set
Patch needs improvement: set

comment:10 Changed 5 months ago by Evstifeev Roman

Cc: someuniquename@… added

add someuniquename@… to cc list

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