from rest_framework import serializers
from rest_framework.serializers import ModelSerializer
from FETraining.models import Author, Book, Publisher, Name, Contact


class NameSerializer(ModelSerializer):


    class Meta:
        model = Name


class ContactSerializer(ModelSerializer):


    class Meta:
        model = Contact


class AuthorSerializer(ModelSerializer):


    class Meta:
        model = Author


class PublisherSerializer(ModelSerializer):


    class Meta:
        model = Publisher


class BookSerializer(ModelSerializer):


    class Meta:
        model = Book

ad9c84d2310ddc79ae1fde1367b8529378c93ee9
<mask token>


class AuthorSerializer(ModelSerializer):


    class Meta:
        model = Author


class PublisherSerializer(ModelSerializer):


    class Meta:
        model = Publisher


class BookSerializer(ModelSerializer):


    class Meta:
        model = Book

<mask token>


class ContactSerializer(ModelSerializer):


    class Meta:
        model = Contact


class AuthorSerializer(ModelSerializer):


    class Meta:
        model = Author


class PublisherSerializer(ModelSerializer):


    class Meta:
        model = Publisher


class BookSerializer(ModelSerializer):


    class Meta:
        model = Book

<mask token>


class NameSerializer(ModelSerializer):


    class Meta:
        model = Name


class ContactSerializer(ModelSerializer):


    class Meta:
        model = Contact


class AuthorSerializer(ModelSerializer):


    class Meta:
        model = Author


class PublisherSerializer(ModelSerializer):


    class Meta:
        model = Publisher


class BookSerializer(ModelSerializer):


    class Meta:
        model = Book

from rest_framework import serializers
from rest_framework.serializers import ModelSerializer
from FETraining.models import Author, Book, Publisher, Name, Contact


class NameSerializer(ModelSerializer):


    class Meta:
        model = Name


class ContactSerializer(ModelSerializer):


    class Meta:
        model = Contact


class AuthorSerializer(ModelSerializer):


    class Meta:
        model = Author


class PublisherSerializer(ModelSerializer):


    class Meta:
        model = Publisher


class BookSerializer(ModelSerializer):


    class Meta:
        model = Book
