Skip to content

Commit

Permalink
Save first and last name for cancelled accounts for redaction
Browse files Browse the repository at this point in the history
  • Loading branch information
sthapa committed Jan 28, 2025
1 parent 8ac1329 commit 3b4e486
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions froide/account/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ def cancel_user(user: User, delete: bool = False) -> None:
user.tags.clear()
user.save()
user.groups.clear()
user.first_name = ""
user.last_name = ""
# Don't clear first and last names so that we can redact after account is deleted
# user.first_name = ""
# user.last_name = ""
user.is_trusted = False
user.is_staff = False
user.is_superuser = False
Expand Down

0 comments on commit 3b4e486

Please sign in to comment.