from rest_framework import serializers
from .models import Author

class AuthorSerializer(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = ("id","nombre", "apellidos", "nacionalidad","sexo","genero_literario","edad")
