B
    ADb                 @   s   d dl mZ d dlmZ d dlmZ d dl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dS )    )serializers)Holiday)util_serializersN)UNSCHEDULED_POLICYc               @   sN   e Zd ZejdddZejej 	 dZ	e
 Zdd ZG dd dZd	S )
HolidaydetailsSerializerzlocation.location_nameT)sourceZ
allow_null)defaultc             C   s   t |j d S )N   )r   	work_type)selfobj r   NG:\easytimepro\master/mysite/att\api\serializers\holidaydetails_serializers.pyget_work_type   s    z&HolidaydetailsSerializer.get_work_typec               @   s   e Zd ZeZdZdS )zHolidaydetailsSerializer.Meta__all__N)__name__
__module____qualname__r   modelfieldsr   r   r   r   Meta   s   r   N)r   r   r   r   Z	CharFieldZlocation_nameZ	DateFielddatetimeZnowdateZSerializerMethodFieldr
   r   r   r   r   r   r   r      s   
r   c               @   s   e Zd ZG dd dZdS )HolidaydetailsCreateSerializerc               @   s   e Zd ZeZdZdS )z#HolidaydetailsCreateSerializer.Metar   N)r   r   r   r   r   r   r   r   r   r   r      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 )HolidaydetailsEditSerializerc               @   s   e Zd ZeZdZdS )z!HolidaydetailsEditSerializer.Metar   N)r   r   r   r   r   r   r   r   r   r   r   !   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 )HolidaydetailsActionSerializerc               @   s   e Zd ZeZdZdS )z#HolidaydetailsActionSerializer.Meta))deleter   N)r   r   r   r   r   Zaction_type_choicesr   r   r   r   r   '   s   r   N)r   r   r   r   r   r   r   r   r   &   s   r   )Zrest_frameworkr   Zmysite.att.models.model_holidayr   Zmysite.staff.api.serializersr   r   Zmysite.att.models_choicesr   ZModelSerializerr   r   r   ZObjectActionSerializerr   r   r   r   r   <module>   s   