pgvector-python icon indicating copy to clipboard operation
pgvector-python copied to clipboard

Django admin: cannot render VectorField as readonly

Open Hornobster opened this issue 11 months ago • 4 comments

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

Hornobster avatar Oct 29 '24 15:10 Hornobster