[Answered ]-DRF's nested relations: serializer output OrderedDict with Tuple

2👍

Found the problem: I ran

WorkShiftSerializer(WorkShift.objects.get(pk=1)).data

in iPython (by python manage.py shell_plus).

I guess somehow iPython screwed up the object type. When I run it in server (python manage.py runserver), it behaves correctly.

Leave a comment