from rest_framework import serializers

from access.models.role_notes import RoleNotes

from api.serializers import common

from app.serializers.user import UserBaseSerializer

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



class RoleNoteBaseSerializer(ModelNoteBaseSerializer):

    pass


class RoleNoteModelSerializer(
    ModelNoteModelSerializer
):


    class Meta:

        model = RoleNotes

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

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



class RoleNoteViewSerializer(
    ModelNoteViewSerializer,
    RoleNoteModelSerializer,
):

    pass