U
    »3qh¡  ã                   @   s*   d dl T d dlmZ G dd„ dejƒZdS )é    )Ú*)Ú
cmf_reportc                       s"   e Zd Zed‡ fdd„	ƒZ‡  ZS )Ú	CmfReportNc                    sL   |dkr.|o|  dd ¡}|s g }|dd|gg}tƒ j|f||||dœ|—ŽS )NZcoursesÚ	parent_idz==)Úobject_fieldsÚfilterÚfieldsÚorder_by)ÚgetÚsuperÚfield_options_list)ÚclsZrelation_field_namer   r   r   r	   Úkwargsr   ©Ú	__class__© ú./common/models/cmf_report.pyr      s    ÿ   ÿÿzCmfReport.field_options_list)NNNN)Ú__name__Ú
__module__Ú__qualname__Úclassmethodr   Ú__classcell__r   r   r   r   r      s          ÿr   N)Zcmf.includeZcommon.fieldsr   r   r   r   r   r   Ú<module>   s   