2👍
OK, two points:
-
Have you tried using PrimaryKeyRelatedField for your
original_id
? It would seem to target your use-case specifically. Combined with the depth option it may give you everything you need. -
You can switch serializers (e.g. based on request method) by overriding
get_serializer_class()
on your view. Not sure if you’ll get the exact behaviour you want here though.
Source:stackexchange.com