Return the fullname for InventoryUser

This commit is contained in:
Andreas Zweili 2023-03-11 16:50:33 +01:00
parent b5345f39a7
commit 7bd564d29d
1 changed files with 4 additions and 1 deletions

View File

@ -2,4 +2,7 @@ from django.contrib.auth.models import AbstractUser
class InventoryUser(AbstractUser):
pass
def __str__(self):
if self.first_name and self.last_name:
return self.first_name + " " + self.last_name
return self.username