Skip to content

Conversation

@ihsaan-ullah
Copy link
Collaborator

@ihsaan-ullah ihsaan-ullah commented Dec 8, 2025

Description

Now we can ban a user from the django admin or django shell. An additional filter is added to filter banned users. Banned status is also shown in the users list table in django admin

Manual Intervention

docker compose exec django python manage.py migrate
docker compose exec django python manage.py collectstatic --no-input

Screenshots

Django admin interface

Screenshot 2025-12-08 at 11 52 07 PM

Banned user page for page visits

Screenshot 2025-12-08 at 11 48 21 PM

Banner user response when calling an api

Screenshot 2025-12-09 at 2 09 09 PM

Documentation

Documentation updated for Administrative procedures to show how to ban/unban` users

Issues this PR resolves

A checklist for hand testing

  • ban a user and check that you cannot access any page or api

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ihsaan-ullah
Copy link
Collaborator Author

This is a first version. We can improve it after getting team's feedback

@ObadaS ObadaS merged commit 6c9639a into develop Dec 9, 2025
1 check passed
@ObadaS ObadaS deleted the ban_users branch December 9, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants