Programming API User

Navigate

    A registered user.

    Attributes

    Parameter Type Description
    id int Identifies the user in the data base.
    email Email User’s email address. Must be unique.
    display_name string User’s display name. Must be unique.
    is_active boolean Indicates if the user is active.
    is_superuser boolean Indicates if the user is super user.

    Methods

    reset_password(password)

    Resets the user’s password.

    Parameters
    password: string
    The new password.

    Creating a user instance

    create_user(email, display_name, password=None, is_active=True)

    Creates a user.

    Parameters
    email: email
    User's email. Must be a valid email address.
    display_name: string
    User's display name.
    password: string
    User's password.
    Returns

    User

    create_superuser(email, display_name, password)

    Creates a super user.

    Parameters
    email: email
    User's email. Must be a valid email address.
    display_name: string
    User's display name.
    password: string
    User's password.
    Returns

    User