Skip to content

Commit

Permalink
SPT-12971: 0 records returned from reciprocal reference field when ac… (
Browse files Browse the repository at this point in the history
#135)

* SPT-12971: 0 records returned from reciprocal reference field when accessed with Python Driver

0 records returned from reciprocal reference field when accessed with Python Driver

* SPT-12971: 0 records returned from reciprocal reference field when accessed with Python Driver

0 records returned from reciprocal reference field when accessed with Python Driver
  • Loading branch information
Tameezuddin authored May 18, 2022
1 parent c3cb866 commit bb955f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swimlane/core/fields/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def set_swimlane(self, value):

# Values come in as a list of record ids or None
value = value or []
if isinstance(value, dict):
value = value["_v"] if "_v" in value else []

records = SortedDict()

Expand Down

0 comments on commit bb955f8

Please sign in to comment.