You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by hs...@apache.org on 2026/08/06 07:09:42 UTC
(casbin-python-django-orm-adapter) branch master updated: style: fix black formatting in apps.py
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 <hs...@gmail.com>
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: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org