Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
nyashaChiza committed Aug 6, 2024
1 parent e740f82 commit 6ea870e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions accounts/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.conf import settings
from django.db import models
from django.contrib.auth.models import AbstractUser, Group, Permission
import uuid
Expand Down Expand Up @@ -41,4 +42,5 @@ def avatar(self):
try:
return f"{self.first_name[0]}{self.last_name[0]}".upper()
except Exception as e:
settings.LOGGER.error(e)
return f"{self.role[0:2]}".upper()

0 comments on commit 6ea870e

Please sign in to comment.