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
For the MeasurementTimeseriesTVPObservationSerializer drops utc_offset when the value = 0 b/c 0 is interpreted as False.
line 492: if not instance.getattribute(field):
We want utc_offset values of 0 to be kept and shown in the viewset. So 2 options:
Can change line 492 to be if instance.getattribute(field) is None:
Can remove utc_offset from the optional fields in line 462.
All of the other optional fields are text field so the current construction of line 492 would work for all the others. B/c we don't have solid testing, I am leaning toward option 2.
The text was updated successfully, but these errors were encountered:
For the MeasurementTimeseriesTVPObservationSerializer drops utc_offset when the value = 0 b/c 0 is interpreted as False.
line 492: if not instance.getattribute(field):
We want utc_offset values of 0 to be kept and shown in the viewset. So 2 options:
All of the other optional fields are text field so the current construction of line 492 would work for all the others. B/c we don't have solid testing, I am leaning toward option 2.
The text was updated successfully, but these errors were encountered: