Skip to content

USER STORY: Ban a user #38

Description

@chris-townsend

User Story:

As a Site admin, I can ban a user so that they are blocked if they violate the site rules

Useful Docs:

User model documentation - https://docs.djangoproject.com/en/3.0/ref/contrib/auth/#django.contrib.auth.models.User.is_active

Tasks:

  • Create a Boolean field in the user profile e.g. is_banned
  • Edit the view to handle the banned user
    • user.is_active = False

Metadata

Metadata

Labels

1User Story Estimate is 1 story pointcould-haveA could-have feature

Projects

Status
Future Features

Relationships

None yet

Development

No branches or pull requests

Issue actions