Tech Insights· adamj.eu
Django: split ModelAdmin.get_queryset() by view
From adamj.eu
Within Django’s popular admin site, you can override ModelAdmin.get_queryset() to customize the queryset used by the admin views. It’s often used for performance optimizations, such as adding a select_related() call to batch-fetch related objects:
Shared by



