pgvector-python
pgvector-python copied to clipboard
Django admin: cannot render VectorField as readonly
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()