3
Ìœ™^Ò  ã               @   sf   d Z ddlZddlmZ ddlmZ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 )z¹
App serializer

Expanding the usefulness of the serializers is
something that we would like to address. However,
it's not a trivial problem, and it will take some
serious design work.
é    N)Úserializersé   )ÚCityÚStateÚCountryc               @   s    e Zd ZdZG dd„ deƒZdS )ÚStateSerializerz
    State Serializer
    c               @   s   e Zd ZdZeZdZdS )zStateSerializer.Metaz$
        class Meta(object)
        ÚidÚnameÚ
state_codeN)r   r	   r
   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚmodelÚfields© r   r   ú</home/hotel/hotelbackend/hotelapplication/app/serializers.pyÚMeta   s   r   N)r   r   r   r   Úobjectr   r   r   r   r   r      s   r   c               @   s    e Zd ZdZG dd„ deƒZdS )ÚCitySerializerz
    City Serializer
    c               @   s   e Zd ZdZeZdZdS )zCitySerializer.Metaz$
        class Meta(object)
        r   r	   N)r   r	   )r   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      s   r   c               @   s    e Zd ZdZG dd„ deƒZdS )ÚCountrySerializerz
    City Serializer
    c               @   s   e Zd ZdZeZdZdS )zCountrySerializer.Metaz$
        class Meta(object)
        r   r	   Úcountry_codeN)r   r	   r   )r   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   (   s   r   )r   ÚjsonÚrest_frameworkr   Úmodelsr   r   r   ÚModelSerializerr   r   r   r   r   r   r   Ú<module>   s   