sensors.AFRICA-api
sensors.AFRICA-api copied to clipboard
ValueError: Cannot assign "<SensorData: esp8266-5926214 7 [2]>": the current database router prevents this re...
Sentry Issue: SENSORSAFRICA-API-JS
ValueError: Cannot assign "<SensorData: esp8266-5926214 7 [2]>": the current database router prevents this relation.
(14 additional frame(s) were not displayed)
...
File "rest_framework/serializers.py", line 686, in to_representation
self.child.to_representation(item) for item in iterable
File "django/db/models/query.py", line 250, in __iter__
self._fetch_all()
File "django/db/models/query.py", line 1121, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "django/db/models/query.py", line 83, in __iter__
setattr(obj, field.name, rel_obj)
File "django/db/models/fields/related_descriptors.py", line 226, in __set__
raise ValueError('Cannot assign "%r": the current database router prevents this relation.' % value)