Skip to content

Commit

Permalink
Obsolete thanks to Django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 7, 2024
1 parent f94d7a2 commit 200ca35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/almost-facet-counts-django-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

For a tantalizing moment today I thought I'd found a recipe for adding facet counts to the Django admin.

> **UPDATE 7th August 2024**: This TIL was made obsolete by [Django 5.0](https://docs.djangoproject.com/en/5.0/releases/5.0/#what-s-new-in-django-5-0), released in December 2023, which now has facet counts in the admin as a core feature.
I love faceted browsing. I've implemented it at least a dozen times in my career, using everything from Solr and Elasticsearch to PostgreSQL (see [Implementing faceted search with Django and PostgreSQL](https://simonwillison.net/2017/Oct/5/django-postgresql-faceted-search/)) or SQLite (see [Datasette Facets](https://simonwillison.net/2018/May/20/datasette-facets/)).

The Django admin almost has facets out of the box, thanks to the `list_filter` interface. But they're missing the all-imprtant count values! Those are the thing that makes faceted search so valuable to me. Today I decided to try and add them.
Expand Down

0 comments on commit 200ca35

Please sign in to comment.