Things You Must Know About Django Admin As Your App Gets Bigger
Haki Benita
1428

Thanks for a great article!

Just one more point worth noting when using Admin with large tables: django-1.10 triggers a non limited ‘SELECT DISTINCT(<field>)…’ for every field included in a list_filter for the quick filter sidebar. Using list_filter only for indexed fields with little variance makes a huge difference; in case you really want a filter (e.g. dropdown) on a very heterogeneous column of a large table, the documentation points at a way of extending SimpleListFilter: https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

Show your support

Clapping shows how much you appreciated Enrique Paz’s story.