from rest_framework import serializers

from api.serializers import common

from app.serializers.user import UserBaseSerializer

from assistance.models.knowledge_base_category_notes import KnowledgeCategoryBaseNotes

from core.serializers.model_notes import (
    ModelNotes,
    ModelNoteBaseSerializer,
    ModelNoteModelSerializer,
    ModelNoteViewSerializer
)



class KnowledgeBaseCategoryNoteBaseSerializer(ModelNoteBaseSerializer):

    pass


class KnowledgeBaseCategoryNoteModelSerializer(
    ModelNoteModelSerializer
):


    class Meta:

        model = KnowledgeCategoryBaseNotes

        fields =  ModelNoteModelSerializer.Meta.fields + [
            'model',
        ]

        read_only_fields = ModelNoteModelSerializer.Meta.read_only_fields + [
            'model',
            'content_type',
        ]



class KnowledgeBaseCategoryNoteViewSerializer(
    ModelNoteViewSerializer,
    KnowledgeBaseCategoryNoteModelSerializer,
):

    pass