o
    Gß»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é   )ÚRaffleEventÚRaffleEntryc                   @   s"   e Zd Ze ¡ ZG dd„ dƒZdS )ÚRaffleEventSerializerc                   @   ó   e Zd ZeZg d¢ZdS )zRaffleEventSerializer.Meta)ÚidÚnameÚslugÚdescriptionÚ	is_activeÚis_archivedÚentry_countÚ
created_atN)Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚfields© r   r   ú>/var/www/html/smartRegister/backend/apps/raffle/serializers.pyÚMeta   ó    r   N)r   r   r   r   ÚReadOnlyFieldr   r   r   r   r   r   r      s    r   c                   @   s   e Zd ZG dd„ dƒZdS )ÚRaffleEntrySerializerc                   @   r   )zRaffleEntrySerializer.Meta)r   ÚeventÚregistration_codeÚ	full_nameÚ
scanned_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    