A
A
Antonio Solo2020-10-28 23:35:04
Django
Antonio Solo, 2020-10-28 23:35:04

How to optimize queries for raw_id_fields in Django admin inlines?

When generating a page, 1 request is made for each raw_id_fields field to form a label . Moreover, this request comes from the ForeignKeyRawIdWidget widget.

I can have several hundred objects on the page, and I want to optimize all this a little.

How to do it ?

5f99d472a6a7b125777027.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question