Looking for recomendation on using popup like admin "+" widget

11 views
Skip to first unread message

GKR

unread,
Jun 25, 2011, 8:36:36 PM6/25/11
to django...@googlegroups.com
Im looking for some way to use the widget with a choice filed  like admin interface (+) to popup a window when clicked on it and popup should give the way to add new data like the datas in the choice field.

on save the window to close and the choice field to get updated along with that..

Please help me ...

Thanking u

GKR

unread,
Jun 26, 2011, 1:44:26 AM6/26/11
to django...@googlegroups.com
Some one please help

Peter Murphy

unread,
Jun 26, 2011, 7:17:48 AM6/26/11
to Django users
GKR,

If I understand you correctly, you want to override the behavior of a
Field.choices property, so that admins can add values on the fly. I
don't think that is possible with Django.

Maybe the best solution is to create a new table with one column - one
that contains only the choices admins want for particular fields in a
parent model. And then use the magic of InlineModelAdmin objects to
embed that table in the parent tables's admin page.

https://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-objects

Is this of assistance?

Best regards,
Peter

GKR

unread,
Jul 6, 2011, 1:44:06 PM7/6/11
to django...@googlegroups.com
Thanks Peter
Reply all
Reply to author
Forward
0 new messages