from rest_framework import serializers
from .models import Investment


class InvestmentSerializer(serializers.ModelSerializer):

    class Meta:
        model = Investment
        fields = ('asset', 'old_buy', 'old_sell', 'amount', 'type', 'user',
                  'visible')
