robosats/api/serializers.py

12 lines
461 B
Python
Raw Normal View History

from rest_framework import serializers
from .models import Order
class OrderSerializer(serializers.ModelSerializer):
class Meta:
model = Order
fields = ('id','status','created_at','type','currency','amount','payment_method','premium','satoshis','maker','taker')
class MakeOrderSerializer(serializers.ModelSerializer):
class Meta:
model = Order
2022-01-02 09:40:19 +00:00
fields = ('type','currency','amount','payment_method','premium','satoshis')