U
    èÜŒf³  ã                   @   s*   d dl T d dlZG dd„ dejjjƒZdS )é    )Ú*Nc                       s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚCmfStatusHistoryTc                    s`   | j r$| j j| _| j j| _| j j| _| jrH| jj| _| jj| _	| jj| _
| jj| _tƒ j||ŽS )N)Zfrom_statusÚcodeZfrom_status_codeÚnameZfrom_status_nameZstatus_typeZfrom_status_typeZ	to_statusZto_status_codeZto_status_nameZto_status_typeÚobjZobj_codeÚsuperÚsave)ÚselfÚargsÚkwargs©Ú	__class__© ú%./common/models/cmf_status_history.pyr      s    






zCmfStatusHistory.save)Ú__name__Ú
__module__Ú__qualname__Z	api_allowr   Ú__classcell__r   r   r   r   r      s   r   )Zcmf.includeZ common.fields.cmf_status_historyÚcommonZfieldsZcmf_status_historyr   r   r   r   r   Ú<module>   s   