
    'hO                     :    d dl mZmZmZ d dlmZ  G d de      Zy)    )DocumentReferenceFieldDateTimeField)datetimec                   |    e Zd Z edd      Z edd      Z edd      Z eej                        Z
ddiZd Zy	)
	QuizShareUserT)requiredImage)default
collectionquiz_sharing_historyc                    t        | j                        | j                  rt        | j                  j                        nd | j                  rt        | j                  j                        nd | j                  rt        | j                  j                        nd | j
                  r| j
                  j                  d      dS d dS )Nz%Y-%m-%d %H:%M:%S)idshared_by_user_idquiz_iduser_idcreated_date)strr   r   r   r   r   strftime)selfs    -/var/www/html/eduruby.in/models/quiz_share.pyto_jsonzQuizShare.to_json   s    dgg,CGCYCYT%;%;%>%>!?_c/3||s4<<??+/3||s4<<??+OSO`O`D--667JK
 	

 gk
 	
    N)__name__
__module____qualname__r   r   r   r   r   r   utcnowr   metar    r   r   r   r      sE    &v=Wt4GVd3G 9L01D
r   r   N)mongoenginer   r   r   r   r   r    r   r   <module>r"      s    @ ? 
 
r   