Skip to content

Commit

Permalink
Merge pull request #535 from anvilistas/persistence-linked-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed May 21, 2024
2 parents 9e11856 + 250f425 commit 3d60f9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
## Bug Fixes
* persistence - fix get method
https://github.com/anvilistas/anvil-extras/issues/523
* persistence - fix handling of Linked Attributes with no row
https://github.com/anvilistas/anvil-extras/issues/534
* MultiSelect - fix an issue with multiselect on the self hosted app server
https://github.com/anvilistas/anvil-extras/issues/525
* routing - fix redirect with None conditions
Expand Down
3 changes: 3 additions & 0 deletions client_code/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def __get__(self, instance, objtype=None):
if not instance._store:
return None

if not instance._store[self._linked_column]:
return None

return instance._store[self._linked_column][self._linked_attr]

def __set__(self, instance, value):
Expand Down

0 comments on commit 3d60f9d

Please sign in to comment.