<gh_stars>1-10
from rest_framework import serializers
from ..models.task import Item


class ItemSerializer(serializers.ModelSerializer):
    class Meta:
        model = Item
        # fields = '__all__'
        exclude = ('create_time', 'update_time')

from rest_framework import serializers
from ..models.task import Item


class ItemSerializer(serializers.ModelSerializer):
    class Meta:
        model = Item
        # fields = '__all__'
        exclude = ('create_time', 'update_time')
# fields = '__all__'