Skip to content

Commit 94702ac

Browse files
author
savynorem
committed
removing validate return fields function as return_fields don't exist here
1 parent d90813a commit 94702ac

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

aredis_om/model/model.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,6 @@ def query(self):
505505
) + f"=>[{self.knn}]"
506506
return self._query
507507

508-
def validate_return_fields(self, return_fields: List[str]):
509-
for field in return_fields:
510-
if field not in self.model.__fields__: # type: ignore
511-
raise QueryNotSupportedError(
512-
f"You tried to return the field {field}, but that field "
513-
f"does not exist on the model {self.model}"
514-
)
515-
return return_fields
516-
517508
@property
518509
def query_params(self):
519510
params: List[Union[str, bytes]] = []

0 commit comments

Comments
 (0)