📜  taggablemanager 序列化程序 django - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.805000             🧑  作者: Mango

代码示例1
from taggit_serializer.serializers import (TagListSerializerField,
                                           TaggitSerializer)


class YourSerializer(TaggitSerializer, serializers.ModelSerializer):

    tags = TagListSerializerField()

    class Meta:
        model = YourModel