from rest_framework import serializers
from food.models import Weight, Schedule


class WeightSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Weight
        fields = ['id', 'time', 'weight']


class ScheduleSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Schedule
        fields = ['id', 'time', 'amount', 'hasFeeded']

d071be897662371136a6587669fc924580c6ada7
<mask token>

<mask token>


class ScheduleSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Schedule
        fields = ['id', 'time', 'amount', 'hasFeeded']

<mask token>


class WeightSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Weight
        fields = ['id', 'time', 'weight']


class ScheduleSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Schedule
        fields = ['id', 'time', 'amount', 'hasFeeded']

from rest_framework import serializers
from food.models import Weight, Schedule


class WeightSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Weight
        fields = ['id', 'time', 'weight']


class ScheduleSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Schedule
        fields = ['id', 'time', 'amount', 'hasFeeded']
