Skip to content
All lessons

Tech Insights

Avoid the overhead of having the default <select> in Django Admin with all the related instances (ForeignKey or ManyToMany)...

Avoid the overhead of having the default <select> in Django Admin with all the related instances (ForeignKey or ManyToMany) just listing them in ModelAdmin.raw_id_fields. I've just done it and my admin change pages are being loaded up to 10x faster, avoiding a lot of request timed out error.

Shared by

  • Django
  • Optimization

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us