from rest_framework import serializers
from .models import Stream, Comment


class StreamSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()
    classroom = serializers.StringRelatedField()


    class Meta:
        model = Stream
        fields = '__all__'


class createStreamSerializer(serializers.ModelSerializer):


    class Meta:
        model = Stream
        fields = '__all__'


class CommentSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()


    class Meta:
        model = Comment
        fields = '__all__'


class createCommentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = '__all__'

eea15df78d5605632d43a54f926efc2fd64baf56
<mask token>


class createStreamSerializer(serializers.ModelSerializer):


    class Meta:
        model = Stream
        fields = '__all__'


class CommentSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()


    class Meta:
        model = Comment
        fields = '__all__'


class createCommentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = '__all__'

<mask token>


class StreamSerializer(serializers.ModelSerializer):
    <mask token>
    <mask token>


    class Meta:
        model = Stream
        fields = '__all__'


class createStreamSerializer(serializers.ModelSerializer):


    class Meta:
        model = Stream
        fields = '__all__'


class CommentSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()


    class Meta:
        model = Comment
        fields = '__all__'


class createCommentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = '__all__'

<mask token>


class StreamSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()
    classroom = serializers.StringRelatedField()


    class Meta:
        model = Stream
        fields = '__all__'


class createStreamSerializer(serializers.ModelSerializer):


    class Meta:
        model = Stream
        fields = '__all__'


class CommentSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()


    class Meta:
        model = Comment
        fields = '__all__'


class createCommentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = '__all__'

from rest_framework import serializers
from .models import Stream, Comment


class StreamSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()
    classroom = serializers.StringRelatedField()


    class Meta:
        model = Stream
        fields = '__all__'


class createStreamSerializer(serializers.ModelSerializer):


    class Meta:
        model = Stream
        fields = '__all__'


class CommentSerializer(serializers.ModelSerializer):
    user = serializers.StringRelatedField()


    class Meta:
        model = Comment
        fields = '__all__'


class createCommentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = '__all__'
