
    	]j                     V    d Z ddlZddlmZ  ej                  e      Z G d de      Zy)zFSM Django App Configuration    N)	AppConfigc                       e Zd ZdZdZdZd Zy)	FsmConfigzdjango.db.models.UUIDFieldfsmzLabel Studio FSMc                    ddl m} ddlm}m}  |       rddlm} t        j                  d       t        j                  d        |       r ddlm}m	}m
} t        j                  d	       yt        j                  d
       y)aA  
        Import models and state_choices to ensure registration happens on Django startup.

        The @register_state_model and @register_state_choices decorators run during
        module import, so we must import these modules to populate the registries.
        This ensures state models are available throughout the application lifecycle.

        CENTRALIZED TRANSITION REGISTRATION:
        This is the ONLY place in LSO where FSM transitions should be imported.
        When running LSE, transitions are skipped here and registered in lse_fsm/apps.py instead.
        r   )is_community   )modelsstate_choices)state_modelsz FSM: Registered OSS state modelsz'FSM models and state choices registered)annotation_transitionsproject_transitionstask_transitionsz7LSO FSM: Registered LSO transitions (community edition)z/LSO FSM: Skipping LSO transitions (running LSE)N)core.utils.commonr    r
   r   r   loggerdebugr   r   r   info)selfr   r
   r   r   r   r   r   s           ?/root/env/lib/python3.12/site-packages/label_studio/fsm/apps.pyreadyzFsmConfig.ready   sa     	3	
 > LL;<>? >  KKQRKKIJ    N)__name__
__module____qualname__default_auto_fieldnameverbose_namer    r   r   r   r   
   s    5D%L+Kr   r   )__doc__loggingdjango.appsr   	getLoggerr   r   r   r   r   r   <module>r$      s.    "  !			8	$0K	 0Kr   