Reducing queries for ForeignKeys in Django admin inlines
Jan 11, 2023 · 3 min read · Speed up with raw_id_fields ForeignKeys in the Django admin show as a select-box (<select>) by default. This will result in a query for every item in the select, only to get the name. This is not a problem if the model you're referencing will always ...
AAnder commented














