D
D
Daniil Chernov2020-08-27 16:36:56
Django
Daniil Chernov, 2020-08-27 16:36:56

How to use select2 in django admin?

There is a model with ForeignKey, when adding an object, you need to specify the ForeignKey object and this list is very long.
In order not to get lost, it would be convenient to implement select2.
How to do it in django admin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-08-27
@dancha

It is already there, it remains to learn how to read the django docs https://docs.djangoproject.com/en/3.1/ref/contrib/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question