a
    îŽígþ  ã                   @   sŠ   d dl mZ 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mZ d dlmZ d dlmZ d dlmZ G d	d
„ d
ejƒZdS )é    )ÚListAndSerializerMixin)ÚviewsetsÚpermissions)ÚIsAuthenticated)Úaction)ÚResponse)ÚQ)ÚExamForm)ÚExamFormSerializerc                   @   s4   e Zd Zej ¡  d¡ZeZ	eZ
dd„ Zdd„ ZdS )ÚExamFormViewSetz-created_atc                 C   s   |  ¡  dS )z3 Set the created_by user when creating a new City. N©Úsave©ÚselfÚ
serializer© r   ú>E:\Server_2_sachin\app\JRP\backend_erp\temp\views\exam_form.pyÚperform_create   s    zExamFormViewSet.perform_createc                 C   s   |  ¡  dS )z/ Set the updated_by user when updating a City. Nr   r   r   r   r   Úperform_update   s    zExamFormViewSet.perform_updateN)Ú__name__Ú
__module__Ú__qualname__r	   ÚobjectsÚallÚorder_byÚquerysetr
   Údefault_serializer_classÚserializer_classr   r   r   r   r   r   r      s
   r   N)Úhrms.views._views_mixinsr   Úrest_frameworkr   r   Zrest_framework.permissionsr   Úrest_framework.decoratorsr   Úrest_framework.responser   Údjango.db.modelsr   Ztemp.models.exam_formr	   Ztemp.serializers.exam_formr
   ÚModelViewSetr   r   r   r   r   Ú<module>   s   