from rest_framework import serializers
from .models import Transaction


# Сериализует объект Transaction для обработки данных
class TransactionSerializer(serializers.ModelSerializer):
     class Meta(object):
        model = Transaction
        fields = ('amount', 'sender_id', 'receiver_id', 'time_stamp',
                  'description', 'is_closed', 'is_hidden','is_purchase','is_outgoing_transfer')
8dbac6d95d2e8492bb4dca8daad429c817f3e228
<mask token>

<mask token>


class TransactionSerializer(serializers.ModelSerializer):


    class Meta(object):
        model = Transaction
        fields = ('amount', 'sender_id', 'receiver_id', 'time_stamp',
            'description', 'is_closed', 'is_hidden', 'is_purchase',
            'is_outgoing_transfer')

from rest_framework import serializers
from .models import Transaction


class TransactionSerializer(serializers.ModelSerializer):


    class Meta(object):
        model = Transaction
        fields = ('amount', 'sender_id', 'receiver_id', 'time_stamp',
            'description', 'is_closed', 'is_hidden', 'is_purchase',
            'is_outgoing_transfer')

from rest_framework import serializers
from .models import Transaction


# Сериализует объект Transaction для обработки данных
class TransactionSerializer(serializers.ModelSerializer):
     class Meta(object):
        model = Transaction
        fields = ('amount', 'sender_id', 'receiver_id', 'time_stamp',
                  'description', 'is_closed', 'is_hidden','is_purchase','is_outgoing_transfer')