Kembalikan atribut asing django istirahat
username = serializers.SerializerMethodField("get_username")
def get_username(self, obj):
return obj.owner.username
Daramola Afeez