mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-27 14:22:58 +03:00
12 lines
489 B
Python
12 lines
489 B
Python
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','is_explicit','premium','satoshis','maker','taker')
|
|
|
|
class MakeOrderSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Order
|
|
fields = ('type','currency','amount','payment_method','is_explicit','premium','satoshis') |