Want a UI for archived user and therapists , [closed]
I have two models in my Django project: User and Therapist. Both have long lists of records in the database. Each model includes an archived_at field (a DateTimeField) that I use to mark when a user or therapist has been archived.
I've already added an admin action that allows me to archive users and therapists via the Django Admin interface by setting the archived_at timestamp.
Now, I want to improve the admin UI by providing a clear separation between active and archived records. Ideally, I'd like to have a dropdown or filter in the admin list view so that I can easily view:
Only active users or therapists (archived_at is NULL)
Only archived users or therapists (archived_at is not NULL)
Or view all records (no filter applied)
What’s the cleanest way to implement this kind of filter in Django Admin?
Any help or code examples would be appreciated.