diff --git a/accounts/models.py b/accounts/models.py index 8534dd2..3c968b1 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -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 @@ -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()