o
    l½i¸  ã                   @   sD   d dl mZ ddlmZmZ G dd„ dejƒZG dd„ dejƒZdS )	é    )Úserializersé   )ÚMotionEventÚ
MotionVotec                   @   s2   e Zd Ze ¡ Ze ¡ Ze ¡ ZG dd„ dƒZdS )ÚMotionEventSerializerc                   @   ó   e Zd ZeZg d¢ZdS )zMotionEventSerializer.Meta)
ÚidÚnameÚslugÚdescriptionÚ	is_activeÚis_archivedÚ	yes_countÚno_countÚtotal_votesÚ
created_atN)Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚfields© r   r   úI/var/www/html/smartRegister/backend/apps/motion_secondment/serializers.pyÚMeta
   ó    r   N)	r   r   r   r   ÚReadOnlyFieldr   r   r   r   r   r   r   r   r      s
    r   c                   @   s   e Zd ZG dd„ dƒZdS )ÚMotionVoteSerializerc                   @   r   )zMotionVoteSerializer.Meta)r   ÚeventÚregistration_codeÚ	full_nameÚvoteÚvoted_atÚ
ip_addressN)r   r   r   r   r   r   r   r   r   r   r      r   r   N)r   r   r   r   r   r   r   r   r      s    r   N)Úrest_frameworkr   Úmodelsr   r   ÚModelSerializerr   r   r   r   r   r   Ú<module>   s    