K
K
KIN19912015-04-03 09:57:13
Django
KIN1991, 2015-04-03 09:57:13

How to make a linked multiselect?

Hi all.
There is a question about creating django forms, I have two models - users and sections of the site, as well as a binding model that contains two fields (user_id, page_id). How to make a multiselect in the admin panel in which you can select sections of the site that will be available to a specific user.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Scherbakov, 2015-04-03
@KIN1991

For this, the InlineAdmin - TabularInline and StackedInline classes are used . djbook.ru/rel1.7/ref/contrib/admin/index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question