parent
4efacf43bf
commit
866ec81807
3 changed files with 41 additions and 0 deletions
@ -0,0 +1,25 @@ |
||||
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', |
||||
) |
||||
|
||||
read_only_fields = ( |
||||
'id', |
||||
'author', |
||||
'type', |
||||
'payment', |
||||
) |
||||
Loading…
Reference in new issue