auth.models.CustomUser.get_short_name()

get_short_name()

A short, informal identifier for the user. A common interpretation would be the first name of the user, but it can be any string that identifies the user in an informal way. It may also return the same value as django.contrib.auth.models.User.get_full_name().

Importing AbstractBaseUser

New in Django 1.9.

AbstractBaseUser and BaseUserManager are importable from django.contrib.auth.base_user so that they can be imported without including django.contrib.auth in INSTALLED_APPS (this raised a deprecation warning in older versions and is no longer supported in Django 1.9).

doc_Django
2016-10-09 18:34:18
Comments
Leave a Comment

Please login to continue.