Skip to content

Cannot resolve keyword 'username' into field. #38

@samuel-andres

Description

@samuel-andres

I'm using a custom user model with USERNAME_FIELD = "email", when trying to access the shell I get the error:

+++
FieldError at /es/admin/django_admin_shellx/terminalcommand/terminal/
Cannot resolve keyword 'username' into field.
+++

Coming from:

/opt/venv/lib/python3.13/site-packages/django_admin_shellx/views.py, line 64, in get_context_data
            .values_list("username", flat=True)

(neat package btw)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions