B
    y¹ûa  ã               @   sT   d dl mZ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S )	é    )ÚredirectÚrender)ÚTemplateView)ÚProject)ÚListView)Úserializersc               @   s$   e Zd ZeZdZdZdZdd„ ZdS )ÚProjectListView)ÚnameÚprojectzproject.htmlc             C   s   t j ¡ }t d|¡}|S )NÚjson)r   ÚobjectsÚfilterr   Ú	serialize)ÚselfÚquerysetZqs_json© r   ú?C:\Project\professor_site\sandeepiiti\visitors\views\project.pyÚget_queryset   s    
zProjectListView.get_querysetN)	Ú__name__Ú
__module__Ú__qualname__r   ÚmodelÚorderingÚcontext_object_nameÚtemplate_namer   r   r   r   r   r      s
   r   N)Údjango.shortcutsr   r   Zdjango.views.genericr   Zvisitors.models.projectr   r   Zdjango.corer   r   r   r   r   r   Ú<module>   s
   