Skip to content

Django admin: cannot render VectorField as readonly #99

@Hornobster

Description

@Hornobster

Django version 5.1.2
pgvector==0.3.5

When setting a VectorField in the readonly_fields property of a ModelAdmin or when the user does not have change permissions (just view permission), the template renderer crashes with:

The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

image

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