Skip to content

get_full_name optional on AbstractBaseUser  #267

@rcjohnson

Description

@rcjohnson

user_info = dict(username=user.get_username(), name=user.get_full_name())
-> references get_full_name(), but per https://docs.djangoproject.com/en/4.2/topics/auth/customizing/ get_full_name is optional. Either update the documentation for Airbrake to make it clear that this method must be implemented, or better, update this line to check for the method and workaround cases when get_full_name is not implemented (e.g. teams with custom user models.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions