Exemple #1
0
class DocumentDetailSerializer(DocumentSerializer):
    from clients.serializers import ClientSerializer
    from projects.serializers import ProjectSerializer
    author = CRMUserTinySerializer(read_only=True)
    client = ClientSerializer()
    project = ProjectSerializer()
    task = ProjectTaskSerializer()
Exemple #2
0
class CommunicationHistoryDetailSerializer(CommunicationHistorySerializer):
    from documents.serializers import DocumentSerializer
    from projects.serializers import ProjectSerializer
    author = CRMUserTinySerializer()
    contact = ContactPersonDetailSerializer()
    task = ProjectTaskSerializer()
    project = ProjectSerializer()
    document = DocumentSerializer()
Exemple #3
0
class ProjectTaskUserSerializer(ProjectTaskSerializer):
    author = CRMUserTinySerializer(read_only=True)
    attached_persons = PersonApprovalUserSerializer(
        source='personapproval_set', many=True)
Exemple #4
0
class ProjectTaskCommentUserSerializer(ProjectTaskCommentSerializer):
    author = CRMUserTinySerializer(read_only=True)
Exemple #5
0
class PersonApprovalUserSerializer(PersonApprovalSerializer):
    person = CRMUserTinySerializer()
Exemple #6
0
class TeamUserSerializer(TeamSerializer):
    members = CRMUserTinySerializer(many=True)
    teamlead = CRMUserTinySerializer()
Exemple #7
0
class AdviceCommentUserSerializer(AdviceCommentSerializer):
    author = CRMUserTinySerializer(read_only=True)
Exemple #8
0
class AdviceUserSerializer(AdviceSerializer):
    author = CRMUserTinySerializer(read_only=True)
Exemple #9
0
class ClientDetailSerializer(ClientSerializer):
    status = ClientStatusSerializer()
    manager = CRMUserTinySerializer()