Service Instances: List and detail view #39

Merged
rixx merged 8 commits from 28-service-instance-listing into main 2025-04-07 17:19:22 +00:00
Showing only changes of commit ab04d9174c - Show all commits

View file

@ -69,9 +69,7 @@ class User(ServalaModelMixin, PermissionsMixin, AbstractBaseUser):
verbose_name_plural = _("Users")
def __str__(self):
if self.first_name and self.last_name:
return f"{self.first_name} {self.last_name}"
return self.email
return f"{self.first_name} {self.last_name}".strip() or self.email
def normalize_username(self, username):
return super().normalize_username(username).strip().lower()