<filename>Conet/Accounts/serializers.py
from rest_framework import serializers
from .models import *

'''
class AuthorSerializer(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = ('id', 'email', 'bio', 'host', 'first_name', 'last_name', 'displayName', 'url', 'github')
'''


<filename>Conet/Accounts/serializers.py
from rest_framework import serializers
from .models import *

'''
class AuthorSerializer(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = ('id', 'email', 'bio', 'host', 'first_name', 'last_name', 'displayName', 'url', 'github')
'''


class AuthorSerializer(serializers.ModelSerializer):     class Meta:         model = Author         fields = ('id', 'email', 'bio', 'host', 'first_name', 'last_name', 'displayName', 'url', 'github')