B
    DDb	                 @   s   d dl mZ d dlmZ d dlmZ d dlmZ G dd dejZ	G dd dejZ
G d	d
 d
ejZG dd dejZG dd dejZG dd dejZdS )    )serializers)PrivateMessage)Employee)util_serializersc               @   s   e Zd ZG dd dZdS )EmployeeSerializerc               @   s   e Zd ZeZddddgZdS )zEmployeeSerializer.Metaidemp_code
first_name	last_nameN)__name__
__module____qualname__r   modelfields r   r   RG:\easytimepro\master/mysite/iclock\api\serializers\private_message_serializers.pyMeta   s   r   N)r   r   r   r   r   r   r   r   r   
   s   r   c               @   sJ   e Zd Ze ZejdddZejdddZejdddZ	G dd dZ
dS )	PrivateMessageSerializerzemployee.emp_codeT)source
allow_nullzemployee.first_namezemployee.last_namec            	   @   s&   e Zd ZeZddddddddd	g	Zd
S )zPrivateMessageSerializer.Metar   employee
start_timedurationcontent	last_sendr   r	   r
   N)r   r   r   r   r   r   r   r   r   r   r      s   
r   N)r   r   r   r   r   r   	CharFieldr   r	   r
   r   r   r   r   r   r      s   r   c               @   sD   e Zd ZejdddZejdddZejdddZG dd dZdS )	PrivateMessageExportSerializerzemployee.emp_codeT)r   r   zemployee.first_namezemployee.last_namec               @   s$   e Zd ZeZddddddddgZd	S )
z#PrivateMessageExportSerializer.Metar   r   r   r   r   r   r	   r
   N)r   r   r   r   r   r   r   r   r   r   r   (   s   
r   N)	r   r   r   r   r   r   r	   r
   r   r   r   r   r   r       s   r   c               @   s   e Zd ZG dd dZdS )PrivateMessageCreateSerializerc               @   s   e Zd ZeZdddddgZdS )z#PrivateMessageCreateSerializer.Metar   r   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r   0   s   r   N)r   r   r   r   r   r   r   r   r   .   s   r   c               @   s   e Zd ZG dd dZdS )PrivateMessageEditSerializerc               @   s2   e Zd ZeZdddddgZddiddd	d
ZdS )z!PrivateMessageEditSerializer.Metar   r   r   r   r   Z	read_onlyTF)requiredr   )r   r   N)r   r   r   r   r   r   Zextra_kwargsr   r   r   r   r   8   s
   r   N)r   r   r   r   r   r   r   r   r   6   s   r   c               @   s   e Zd ZG dd dZdS )PrivateMessageActionSerializerc               @   s   e Zd ZeZdZdS )z#PrivateMessageActionSerializer.Meta))deleter!   N)r   r   r   r   r   Zaction_type_choicesr   r   r   r   r   D   s   r   N)r   r   r   r   r   r   r   r   r    B   s   r    N)Zrest_frameworkr   Z*mysite.iclock.models.model_private_messager   Z&mysite.personnel.models.model_employeer   Z mysite.personnel.api.serializersr   ZModelSerializerr   r   r   r   r   ZObjectActionSerializerr    r   r   r   r   <module>   s   