/home/labsmith/venv_labsmit/lib/python3.6/site-packages/django/contrib/auth/models.py class User(AbstractUser): """ Users within the Django authentication system are represented by this model. Username and password are required. Other fields are optional. """ def __str__(self): return self.get_full_name() class Meta(AbstractUser.Meta): swappable = 'AUTH_USER_MODEL'
添加 str 方法python
暫時沒發現異常,有異常在更新django