U
    2e                     @   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 fddZ  ZS )CmfStatusHistoryc                    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__r   __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   