Skip to content

Commit

Permalink
fix: this check fails if there is an ampel field
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Feb 21, 2024
1 parent 42e4449 commit 4465a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions viecpro_typesense/classes/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def _deferred_init(self):

def parse_references(self):
if isinstance(self._references, str):
assert (
self._references in self._model_fields.keys()
), f"Field {self._references} not in {self._model_fields.keys()}"
#assert (
# self._references in self._model_fields.keys()
#), f"Field {self._references} not in {self._model_fields.keys()}"
return (self._references,)

elif isinstance(self._references, (tuple, list, set)):
Expand Down

0 comments on commit 4465a9f

Please sign in to comment.