You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both cases, the dict is treated as a sequence, is iterated over and converted into a list or set.
Note that the JSON column could also contain a list , so I think just ignoring dicts is not the right answer. Rather, there would need to be some knowledge about whether the value gotten from the model is from a relationship, or not.
The text was updated successfully, but these errors were encountered:
If I observe a JSON column:
And
data
is{"a": 1, "b": 2}
, and I change thebase
attribute, then the observer will print:This is because two
is_sequence
checks:In both cases, the
dict
is treated as a sequence, is iterated over and converted into a list or set.Note that the JSON column could also contain a
list
, so I think just ignoring dicts is not the right answer. Rather, there would need to be some knowledge about whether the value gotten from the model is from a relationship, or not.The text was updated successfully, but these errors were encountered: