from django.contrib.auth.models import AbstractUser
from django.db import models


class Person(AbstractUser):
    description = models.TextField(blank=True)

    def __str__(self):
        return "User(<{}>}".format(self.email)

from django.contrib.auth.models import AbstractUser
from django.db import models


class Person(AbstractUser):
    description = models.TextField(blank=True)

    def __str__(self):
        if self.email:
            return "User(<{}>)".format(self.email)
        return "User(<{}>)".format(self.username)

Fix return string from user model
Fix return string from user model

  Also return username if there is no email address set
