You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
521 B
26 lines
521 B
from rest_framework import serializers
|
|
|
|
from apps.payment.models import AuthorBalance
|
|
|
|
|
|
class AuthorBalanceSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = AuthorBalance
|
|
fields = (
|
|
'id',
|
|
'author',
|
|
'type',
|
|
'amount',
|
|
'commission',
|
|
'status',
|
|
'payment',
|
|
'cause',
|
|
)
|
|
|
|
read_only_fields = (
|
|
'id',
|
|
'author',
|
|
'type',
|
|
'payment',
|
|
)
|
|
|