We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e211ba4 commit e2986daCopy full SHA for e2986da
CHANGELOG.md
@@ -1,5 +1,6 @@
1
## 0.4.2 (unreleased)
2
3
+- Added support for Django 6
4
- Added support for `str` objects for `bit` type with SQLAlchemy
5
6
## 0.4.1 (2025-04-26)
pgvector/django/extensions.py
@@ -1,6 +1,11 @@
+from django import VERSION
from django.contrib.postgres.operations import CreateExtension
class VectorExtension(CreateExtension):
- def __init__(self):
- self.name = 'vector'
+ if VERSION[0] >= 6:
7
+ def __init__(self, hints=None):
8
+ super().__init__('vector', hints=hints)
9
+ else:
10
+ def __init__(self):
11
+ self.name = 'vector'
0 commit comments