Opened 9 years ago

Last modified 10 days 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@…, Ülgen Sarıkavak, Alexander Lazarević 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 (14)

comment:1 by gam_phon, 9 years ago

comment:2 by gam_phon, 9 years ago

Version: 1.8master

comment:3 by Tim Graham, 9 years ago

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 by Marc Tamlyn, 9 years ago

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 by Curtis Maloney, 9 years ago

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 by Curtis Maloney, 9 years ago

Owner: set to Curtis Maloney
Status: newassigned

comment:7 by Brian Krische, 9 years ago

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

comment:8 by Tim Graham, 9 years ago

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

comment:9 by Tim Graham, 9 years ago

Has patch: set
Patch needs improvement: set

comment:10 by Evstifeev Roman, 7 years ago

Cc: someuniquename@… added

add someuniquename@… to cc list

comment:11 by Mariusz Felisiak, 4 years ago

Component: contrib.postgrescontrib.admin

comment:12 by Mariusz Felisiak, 3 years ago

Owner: Curtis Maloney removed
Status: assignednew

comment:13 by Ülgen Sarıkavak, 8 months ago

Cc: Ülgen Sarıkavak added

comment:14 by Alexander Lazarević, 10 days ago

Cc: Alexander Lazarević added
Note: See TracTickets for help on using tickets.
Back to Top