3
É4à[i  ã               @   sr   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 G dd„ de jƒZG d	d
„ d
eejejƒZdS )é    N)Úmixins)ÚGenericViewSet)ÚIntolerancia)Ú"LimitOffsetPaginationWithoutLimits)ÚIntoleranciaSerializerc               @   s   e Zd ZG dd„ dƒZdS )ÚIntoleranciaFilterc               @   s   e Zd ZeZddiZdS )zIntoleranciaFilter.MetaÚidÚexactÚinN)r	   r
   )Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚfields© r   r   úD/var/www/vitahealth/hygea.vitahealth/healthapi/views/intolerancia.pyÚMeta   s   r   N)r   r   r   r   r   r   r   r   r      s   r   c               @   s&   e Zd ZdZejjƒ ZeZ	e
ZeZdS )ÚIntoleranciaViewSetzW
    retrieve:
    Obtener una enfermedad.

    list:
    Listado de enfermedades.
    N)r   r   r   Ú__doc__r   ÚobjectsÚallÚquerysetr   Úserializer_classr   Úfilter_classr   Úpagination_classr   r   r   r   r      s
   
r   )Údjango_filtersÚrest_frameworkr   Úrest_framework.viewsetsr   Zhealthbackend.modelsr   Z#healthapi.rest_framework.paginationr   Z"healthapi.serializers.intoleranciar   Ú	FilterSetr   ÚRetrieveModelMixinÚListModelMixinr   r   r   r   r   Ú<module>   s   