Closed bjrne closed 3 years ago
I tried the send message functionality in the docker prod container and got this error: @feeds
backend_1 | 2020-09-22 03:24:38,191: django.request ERROR |Internal Server Error: /matching/helper/| backend_1 | Traceback (most recent call last): backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 34, in inner backend_1 | response = get_response(request) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 115, in _get_response backend_1 | response = self.process_exception_by_middleware(e, request) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 113, in _get_response backend_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/views/generic/base.py", line 71, in view backend_1 | return self.dispatch(request, *args, **kwargs) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/views/generic/base.py", line 97, in dispatch backend_1 | return handler(request, *args, **kwargs) backend_1 | File "/backend/apps/matching/views/filtered_participants.py", line 46, in post backend_1 | initiator="B", backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/db/models/manager.py", line 82, in manager_method backend_1 | return getattr(self.get_queryset(), name)(*args, **kwargs) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/db/models/query.py", line 431, in create backend_1 | obj = self.model(**kwargs) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/db/models/base.py", line 482, in __init__ backend_1 | _setattr(self, field.name, rel_obj) backend_1 | File "/usr/local/lib/python3.6/dist-packages/django/db/models/fields/related_descriptors.py", line 219, in __set__ backend_1 | self.field.remote_field.model._meta.object_name, backend_1 | ValueError: Cannot assign "<ParticipantA: ParticipantA object (63)>": "Match.participantB" must be a "ParticipantB" instance.
I tried the send message functionality in the docker prod container and got this error: @feeds