Refresh doesn't maintain all_columns()? #799
Answered
by
dantownsend
williamflaherty
asked this question in
Q&A
-
I noticed this today when updating an object. My code looks like this:
however when you refresh all the columns, or just the address_id column as I have here, the newly polled object replaces the nested fk object with just the ID again. Is that right? I tried passing .all_columns() to the refresh call but to no avail. |
Beta Was this translation helpful? Give feedback.
Answered by
dantownsend
Apr 1, 2023
Replies: 1 comment
-
Yeah, refresh doesn't refresh nested objects currently - it's something we should add though. Try doing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dantownsend
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, refresh doesn't refresh nested objects currently - it's something we should add though.
Try doing
await contract.address_id.refresh()
.