Title: Django admin: cannot render VectorField as readonly · Issue #99 · pgvector/pgvector-python · GitHub
Open Graph Title: Django admin: cannot render VectorField as readonly · Issue #99 · pgvector/pgvector-python
X Title: Django admin: cannot render VectorField as readonly · Issue #99 · pgvector/pgvector-python
Description: 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...
Open Graph Description: 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 templat...
X Description: 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 templat...
Opengraph URL: https://github.com/pgvector/pgvector-python/issues/99
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Django admin: cannot render VectorField as readonly","articleBody":"Django version 5.1.2\r\npgvector==0.3.5\r\n\r\nWhen 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:\r\n\r\n`The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()`\r\n\r\n\r\n","author":{"url":"https://github.com/Hornobster","@type":"Person","name":"Hornobster"},"datePublished":"2024-10-29T15:10:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/99/pgvector-python/issues/99"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e230887c-58b8-45ef-b5cf-bb1e591a3c8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2F6:EF5D6:1BD773A:26EB8B5:6970E431 |
| html-safe-nonce | e9d66086756bbcdb4d455eb59820ed7c1d46301dd06980a1dacec261d3e07bca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkY2OkVGNUQ2OjFCRDc3M0E6MjZFQjhCNTo2OTcwRTQzMSIsInZpc2l0b3JfaWQiOiI1OTc2ODY1MzczMjE3ODQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cdfbdda523e4a722f4a8bb23e814fe30b03eb4aa88352e47aa1c1c1c3141cac6 |
| hovercard-subject-tag | issue:2621552890 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pgvector/pgvector-python/99/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c69ffef5bed807eb6c8d0429347a9476943f0f8f1fb48f45c934c0bd2e756b5a/pgvector/pgvector-python/issues/99 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c69ffef5bed807eb6c8d0429347a9476943f0f8f1fb48f45c934c0bd2e756b5a/pgvector/pgvector-python/issues/99 |
| og:image:alt | 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 templat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Hornobster |
| hostname | github.com |
| expected-hostname | github.com |
| None | a8b3a33ad16bd33428ccc7800d4ea7bfc6b4990584847afdcb92b020b61a949b |
| turbo-cache-control | no-preview |
| go-import | github.com/pgvector/pgvector-python git https://github.com/pgvector/pgvector-python.git |
| octolytics-dimension-user_id | 98363230 |
| octolytics-dimension-user_login | pgvector |
| octolytics-dimension-repository_id | 376300726 |
| octolytics-dimension-repository_nwo | pgvector/pgvector-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 376300726 |
| octolytics-dimension-repository_network_root_nwo | pgvector/pgvector-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b8a8c883a585a3dc6cb57fa8b7997b70c86a696c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width