<reponame>harshalgalgale/alumni
from rest_framework.serializers import ModelSerializer

from article.models import Blog, Bulletin, Album


class BulletinSerializer(ModelSerializer):
    class Meta:
        model = Bulletin
        fields = '__all__'


class BlogSerializer(ModelSerializer):
    class Meta:
        model = Blog
        fields = '__all__'


class AlbumSerializer(ModelSerializer):
    class Meta:
        model = Album
        fields = '__all__'
        depth = 1

from rest_framework.serializers import ModelSerializer

from article.models import Blog, Bulletin, Album


class BulletinSerializer(ModelSerializer):
    class Meta:
        model = Bulletin
        fields = '__all__'


class BlogSerializer(ModelSerializer):
    class Meta:
        model = Blog
        fields = '__all__'


class AlbumSerializer(ModelSerializer):
    class Meta:
        model = Album
        fields = '__all__'
        depth = 1