Skip to content

Invenio admin crashes due to a lazy_string. #529

@jma

Description

@jma

Package version (if known): 6.2.0

Describe the bug

Invenio admin crashes due to a lazy_string.

Steps to Reproduce

  1. Create a full invenio instance with invenio-admin and invenio-accounts.
  2. Login with the admin user.
  3. go to /admin/useridentity/
  4. An error page occurs.

Here is the exception:
TypeError: sequence item 2: expected str instance, LazyString found

Expected behavior

Screenshots (if applicable)

Additional context

Probably this

"user.id": lazy_gettext("User ID"),
should be changed to:

    column_labels = {
        "user.email": _("Email"),
        "id_user": _("User ID"),
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions