add new model and change offer models
This commit is contained in:
14
core/apps/counterparty/serializers/counterparty.py
Normal file
14
core/apps/counterparty/serializers/counterparty.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.accounts.serializers.user import UserListSerializer
|
||||
from core.apps.counterparty.models import Counterparty
|
||||
|
||||
|
||||
class CounterpartySerializer(serializers.ModelSerializer):
|
||||
person = UserListSerializer()
|
||||
|
||||
class Meta:
|
||||
model = Counterparty
|
||||
fields = [
|
||||
'id', 'name', 'type', 'status', 'description', 'start_date', 'person'
|
||||
]
|
||||
Reference in New Issue
Block a user