from django.core.exceptions import ValidationError
from rest_framework import serializers
from rest_framework.compat import md_filter_add_syntax_highlight
from .models import Movies

class MovieSerializer(serializers.ModelSerializer):
    genre = serializers.ListField()

    class Meta:
        model = Movies
        fields = "__all__"
        read_only_fields = ['created_at']




    
deb4e5ba00ad11323733c5527a72eb2ee48b08b8
<mask token>

<mask token>


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


    class Meta:
        model = Movies
        fields = '__all__'
        read_only_fields = ['created_at']

<mask token>


class MovieSerializer(serializers.ModelSerializer):
    genre = serializers.ListField()


    class Meta:
        model = Movies
        fields = '__all__'
        read_only_fields = ['created_at']

from django.core.exceptions import ValidationError
from rest_framework import serializers
from rest_framework.compat import md_filter_add_syntax_highlight
from .models import Movies


class MovieSerializer(serializers.ModelSerializer):
    genre = serializers.ListField()


    class Meta:
        model = Movies
        fields = '__all__'
        read_only_fields = ['created_at']

from django.core.exceptions import ValidationError
from rest_framework import serializers
from rest_framework.compat import md_filter_add_syntax_highlight
from .models import Movies

class MovieSerializer(serializers.ModelSerializer):
    genre = serializers.ListField()

    class Meta:
        model = Movies
        fields = "__all__"
        read_only_fields = ['created_at']




    