from rest_framework import serializers

from v1.tags.models.tag import Tag


class AdminTagSerializer(serializers.ModelSerializer):

    class Meta:
        model = Tag
        fields = ["id", "name", "slug"]
        lookup_field = "slug"
        extra_kwargs = {"slug": {"read_only": True}}

982e0d6af76b346e6406becb8efa167c9c41a638
<mask token>

<mask token>


class AdminTagSerializer(serializers.ModelSerializer):


    class Meta:
        model = Tag
        fields = ['id', 'name', 'slug']
        lookup_field = 'slug'
        extra_kwargs = {'slug': {'read_only': True}}

from rest_framework import serializers
from v1.tags.models.tag import Tag


class AdminTagSerializer(serializers.ModelSerializer):


    class Meta:
        model = Tag
        fields = ['id', 'name', 'slug']
        lookup_field = 'slug'
        extra_kwargs = {'slug': {'read_only': True}}

from rest_framework import serializers

from v1.tags.models.tag import Tag


class AdminTagSerializer(serializers.ModelSerializer):

    class Meta:
        model = Tag
        fields = ["id", "name", "slug"]
        lookup_field = "slug"
        extra_kwargs = {"slug": {"read_only": True}}
