Retour Attribut ForeignKed Django Rest

username = serializers.SerializerMethodField("get_username")
def get_username(self, obj):
    return obj.owner.username
Daramola Afeez