K
K
k0r0g2022-02-09 21:07:41
Django
k0r0g, 2022-02-09 21:07:41

How to change select content dynamically in django admin?

Let's say there are 3 tables: pizza, chefs and orders. Each pizza can be prepared by one or more chefs.
In the admin panel, when adding an order, I would like that when choosing a pizza, select chefs will automatically change the content to those chefs who are able to cook the selected pizza.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-02-09
@bacon

create your form with https://github.com/codingjoe/django-select2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question