B
    ~·MgŸ  ã               @   s`   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ƒZd
d„ ZdS )é    N)ÚJsonResponse)Úrender)ÚListView)Úserializersé   )Ú
VistaTotalc               @   s$   e Zd ZeZdZej d¡ ¡ Z	dS )ÚVistaTotalLVzvistatotal.htmlÚflorN)
Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚtemplate_nameÚobjectsÚusingÚallÚqueryset© r   r   ú#/var/www/cbba24/apps/flora/views.pyr   
   s   r   c             C   s*   t  dtj d¡ ¡ ¡}tt |¡dd�S )NÚjsonr	   F)Úsafe)	r   Ú	serializer   r   r   r   r   r   Úloads)ÚrequestÚdatar   r   r   Ú
vistatotal   s    r   )r   Údjango.httpr   Údjango.shortcutsr   Údjango.views.generic.listr   Údjango.corer   Úmodelsr   r   r   r   r   r   r   Ú<module>   s   