File manager - Edit - /usr/local/CyberCP/backup/__pycache__/backupRouter.cpython-310.pyc
Back
o �hC � @ s G d d� d�Z dS )c @ s2 e Zd ZdZdd� Zdd� Zdd� Zdd d �ZdS )�backupRouterz\ A router to control all database operations on models in the auth application. c K � |j jdkrdS dS )z= Attempts to read auth models go to auth_db. �backup�rootdbN��_meta� app_label��self�model�hints� r �)/usr/local/CyberCP/backup/backupRouter.py�db_for_read � zbackupRouter.db_for_readc K r )z> Attempts to write auth models go to auth_db. r r Nr r r r r �db_for_write r zbackupRouter.db_for_writec K s |j jdks|j jdkrdS dS )zI Allow relations if a model in the auth app is involved. r TNr )r �obj1�obj2r r r r �allow_relation s zbackupRouter.allow_relationNc K s |dkr|dkS dS )zX Make sure the auth app only appears in the 'auth_db' database. r r Nr )r �dbr � model_namer r r r � allow_migrate s zbackupRouter.allow_migrate)N)�__name__� __module__�__qualname__�__doc__r r r r r r r r r s r N)r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings