49 lines
1.3 KiB
Python
49 lines
1.3 KiB
Python
from rest_framework import serializers
|
|
from AuthApp.models import *
|
|
|
|
|
|
# Person
|
|
|
|
|
|
class client_UserProfile_Serializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = UserProfile
|
|
fields = (
|
|
'id',
|
|
# 'name', 'company', 'departament', 'company_position', 'phone', 'email', 'document_sign_person',
|
|
# 'days_to_order_cancellation_default', 'days_to_pay_default', 'pay_terms', 'discount', 'birthdate',
|
|
|
|
)
|
|
|
|
|
|
class staff_UserProfile_Serializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = UserProfile
|
|
fields = (
|
|
'id',
|
|
# 'name', 'company', 'departament', 'company_position', 'phone', 'email',
|
|
# 'birthdate',
|
|
)
|
|
|
|
|
|
class UserProfile_Serializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = UserProfile
|
|
fields = (
|
|
'id',
|
|
# 'name', 'company', 'departament', 'company_position', 'phone', 'email', 'document_sign_person',
|
|
# 'days_to_order_cancellation_default', 'days_to_pay_default', 'pay_terms', 'discount', 'birthdate',
|
|
)
|
|
|
|
class UserProfile_list_Serializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = UserProfile
|
|
fields = (
|
|
'id',
|
|
# 'name'
|
|
)
|
|
|
|
|
|
# ---------------------------------------- |