Skip to content

Commit

Permalink
fixed a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jan 31, 2024
1 parent ebaa9bd commit 1c0d940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def can_approve(self, obj):

def mark_deleted(self):
self.is_deleted = True
self.last_login = timezone.now()
self.deleted_at = timezone.now()
self.save()
email_template_context = {
"user": self,
Expand All @@ -132,8 +132,8 @@ def mark_deleted(self):
)

def mark_restored(self):
self.is_deleted = True
self.last_login = timezone.now()
self.is_deleted = False
self.deleted_at = None
self.save()
email_template_context = {
"user": self,
Expand Down

0 comments on commit 1c0d940

Please sign in to comment.