S
S
selfdestroy2017-04-26 13:53:46
Django
selfdestroy, 2017-04-26 13:53:46

How to make multiple foreign key selections in django admin?

If the model is Order, it has a product field, which is substituted using Foreigkey. How to edit admin.py to be able to add more than one Product value.a04f740531da4b2b8a7b35bd6d66c9cf.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-04-26
@selfdestroy

For this, the ManyToMany field is used

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question