-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django admin: cannot render VectorField as readonly #99
Comments
Hi @Hornobster, can you paste the full stack trace? (with any personal info removed) |
Sure, here's the whole traceback from stdout:
|
Thanks. I don't really see a way to fix this without a breaking change (having vector columns return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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()
The text was updated successfully, but these errors were encountered: