
    Nwg                     D    d dl mZ  ej                  d      Z	 	 	 	 ddZy)    )metadatazdjango-simple-historyNc                     ddl m} ||j                  } |di |}||_        ||_        |xr d|z  xs | j
                  |_        | |_        |j                  |        |j                  |        y)a=  
    Create historical model for `model` and attach history manager to `model`.

    Keyword arguments:
    app -- App to install historical model into (defaults to model.__module__)
    manager_name -- class attribute name to use for historical manager
    records_class -- class to use for history relation (defaults to
        HistoricalRecords)
    table_name -- Custom name for history table (defaults to
        'APPNAME_historicalMODELNAME')

    This method should be used as an alternative to attaching an
    `HistoricalManager` instance directly to `model`.
       )modelsNz	%s.models )
 r   HistoricalRecordsmanager_name
table_name
__module__moduleclsadd_extra_methodsfinalize)modelappr
   records_classr   records_configr   recordss           N/var/www/horilla/myenv/lib/python3.12/site-packages/simple_history/__init__.pyregisterr      st    , 00-n-G'G#G0kC/DE4D4DGNGKe$U    )NhistoryNN)	importlibr   version__version__r   r   r   r   <module>r      s.    h67
 	!r   