Skip to content

Commit 1bad2e6

Browse files
committed
Use get_prep_value to match Django docs [skip ci]
1 parent f6273e9 commit 1bad2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgvector/django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_prep_value(self, value):
4040
return to_db(value)
4141

4242
def value_to_string(self, obj):
43-
return to_db(self.value_from_object(obj))
43+
return self.get_prep_value(self.value_from_object(obj))
4444

4545

4646
class IvfflatIndex(PostgresIndex):

0 commit comments

Comments
 (0)