o
    Fi4                     @   sV   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G dd	 d	ejZd
S )    )serializers   )EventEventCategoryc                   @   s   e Zd ZG dd dZdS )EventCategorySerializerc                   @      e Zd ZeZg dZdS )zEventCategorySerializer.Meta)idnamecodedescription
created_atN)__name__
__module____qualname__r   modelfields r   r   >/var/www/html/smartRegister/backend/apps/events/serializers.pyMeta       r   N)r   r   r   r   r   r   r   r   r      s    r   c                   @   s8   e Zd ZejdddZe Ze ZG dd dZ	dS )EventSerializercategory.nameTsource	read_onlyc                   @   r   )zEventSerializer.Meta)r   r	   categorycategory_name
event_typer   
start_dateend_datelocationis_paidamount	is_activeis_archivedarchived_atis_registerablemax_capacityparent_eventregistration_countis_at_capacityself_checkin_enabledself_checkin_latself_checkin_lngself_checkin_radius_mr   
updated_atNr   r   r   r   r   r   r   r   r   r   r      r   r   N)
r   r   r   r   	CharFieldr   ReadOnlyFieldr)   r*   r   r   r   r   r   r      s
    r   c                   @   s0   e Zd ZejdddZe ZG dd dZdS )EventListSerializerr   Tr   c                   @   r   )zEventListSerializer.Meta)r   r	   r   r   r   r   r   r    r!   r"   r#   r$   r&   r'   r)   r+   r.   Nr0   r   r   r   r   r       r   r   N)	r   r   r   r   r1   r   r2   r)   r   r   r   r   r   r3      s    r3   N)	rest_frameworkr   modelsr   r   ModelSerializerr   r   r3   r   r   r   r   <module>   s
    