from apps.utils.serializers import CustomModelSerializer
from apps.cms.models import Article
from apps.utils.constants import EXCLUDE_FIELDS_BASE

class ArticleSerializer(CustomModelSerializer):
    class Meta:
        model = Article
        fields = '__all__'
        read_only_fields = EXCLUDE_FIELDS_BASE + ["is_top"]