Pedro Giménez
Results
2
comments of
Pedro Giménez
We finally solved it using a RelatedField that interacts with the UserInterface in the Outfits domain. This way we don't cross boundaries.
I'm still not sure if this is the best approach but here's our implementation: ```python # com.outfits.serializers from com.outfits.interfaces import UserInterface class UserField(serializers.RelatedField): def to_representation(self, value): return UserInterface.get_user(id=value) class OutfitSerializer(serializers.HyperlinkedModelSerializer):...