
    siw                     :    d Z ddlZddlZddlmZ  G d de      Zy)zz
App configuration for the Worksol Automations app.
Initializes model choices and starts automation when the server runs.
    N)	AppConfigc                       e Zd ZdZdZdZd Zy)HorillaAutomationConfigz;Configuration class for the Worksol Automations Django app.zdjango.db.models.BigAutoFieldhorilla_automationsc                    ddl m} ddlm} ddlm} ddlm} |g} |d      rddlm	} |j                  |       |D ]E  } ||      D ]8  }|j                  |j                   d|j                   |j                  f       : G |j                  d	       |j                  d
       t        t        |            |dd t        d dD              sddlm}	  |	        yy)z/Run initialization tasks when the app is ready.r   )app_installed)Employee)get_related_models)MODEL_CHOICESrecruitment)	Candidate.)zemployee.models.Employeer	   )zpms.models.EmployeeKeyResultzEmployee Key ResultsNc              3   @   K   | ]  }|t         j                  v   y w)N)sysargv).0cmds     </var/www/python-projects/worksol/horilla_automations/apps.py	<genexpr>z0HorillaAutomationConfig.ready.<locals>.<genexpr>+   s       
 388O
s   )	makemigrationsmigrateshowmigrationscollectstaticcompilemessagesflushshelltestcheck)start_automation) base.templatetags.horillafiltersr   employee.modelsr	   #horilla_automations.methods.methodsr
   horilla_automations.modelsr   recruitment.modelsr   append
__module____name__listsetanyhorilla_automations.signalsr   )
selfr   r	   r
   model_choicesmodelsr   
main_modelmodelr   s
             r   readyzHorillaAutomationConfig.ready   s    B,JM '4MM)$  	J+J7 $$(()5>>*:;U^^L	 	EFUVM 23a  


 
 E!
    N)r'   r&   __qualname____doc__default_auto_fieldnamer1    r2   r   r   r      s    E8 D)r2   r   )r4   osr   django.appsr   r   r7   r2   r   <module>r:      s!   
 
 
 !/i /r2   