devilry / trix2

Next generation Trix. Detailed task control and statistics app for better learning outcome.
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Improved handling of inactive users #105

Open torgeirl opened 4 years ago

torgeirl commented 4 years ago

User case

Django admin UI is quite limited in its handling of user deletion; Trix 2.1 only has filters for super users and last login (today, last seven days, this month, this year, no login date, or has login date).

With the consent form introduced in 2.1.0 (#21) it would also be nice to filter whether users has signed the consent form or not.

Solutions

1. CLI commands CLI commands that allow system administrators to delete inactive users more targeted than Django admin UI, similar to Devilry's management command:

venv/bin/python manage.py devilry_delete_inactive_users "YYYY-MM-DD HH:MM"

This could be combined with an option to keep users older than the provided date, if they have signed consent form.

2. Extend Django admin filters Add more filters to /trix_core/user: