from rest_framework import serializers
from newss.models import News


class NewsSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = News
        fields = ['name', 'author']

a2a7153ef1ae37db375bc14c96653efa98746304
<mask token>

<mask token>


class NewsSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = News
        fields = ['name', 'author']

from rest_framework import serializers
from newss.models import News


class NewsSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = News
        fields = ['name', 'author']
