From 6ea870ec9aa4f0767c52dd0e23d9ad655c34f87c Mon Sep 17 00:00:00 2001 From: Nyasha Chizampeni Date: Tue, 6 Aug 2024 23:34:44 +0200 Subject: [PATCH] save --- accounts/models.py | 2 ++ 1 file changed, 2 insertions(+) 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()