Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Cannot assign "<SensorData: esp8266-5926214 7 [2]>": the current database router prevents this re... #126

Open
sentry-io bot opened this issue Dec 13, 2022 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 13, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant