This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/casbin-python-django-orm-adapter.git
The following commit(s) were added to refs/heads/master by this push:
new d56f80d style: fix black formatting in apps.py
d56f80d is described below
commit d56f80d6f39fa8c033a0bd4fd475f6ade0875c30
Author: Yang Luo <[email protected]>
AuthorDate: Thu Aug 6 15:09:34 2026 +0800
style: fix black formatting in apps.py
---
casbin_adapter/apps.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/casbin_adapter/apps.py b/casbin_adapter/apps.py
index 28d3b75..7089688 100644
--- a/casbin_adapter/apps.py
+++ b/casbin_adapter/apps.py
@@ -7,4 +7,5 @@ class CasbinAdapterConfig(AppConfig):
def ready(self):
from .enforcer import enforcer
+
enforcer.db_alias = getattr(settings, "CASBIN_DB_ALIAS", "default")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]