admin addGroup similar layout

8 views
Skip to first unread message

ledzgio

unread,
Jul 1, 2012, 10:32:14 AM7/1/12
to django...@googlegroups.com
Hi all,

I would like to have a layout similar to the one in the Admin page --> Groups --> Add Group, the Permissions field, where I can have all elements of a table throw a foreignKey (I suppose) on the left and add them to the right side.

How can I reproduce this configuration? how can I list all elements of a table (this table is referred with a ForeignKey from the main entity of the model) with a similar layout to the Admin add group?

thanks very much

Melvyn Sopacua

unread,
Jul 3, 2012, 2:01:46 PM7/3/12
to django...@googlegroups.com
On 1-7-2012 16:32, ledzgio wrote:

> I would like to have a layout similar to the one in the Admin page -->
> Groups --> Add Group, the Permissions field, where I can have all elements
> of a table throw a foreignKey (I suppose) on the left and add them to the
> right side.

<https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.filter_horizontal>

If you need it outside the admin, trace down the filter_horizontal
attribute to the widget. Not in a position to do that right now.
--
Melvyn Sopacua


Reply all
Reply to author
Forward
0 new messages