vimzoomer commented on code in PR #5:
URL:
https://github.com/apache/casbin-python-django-orm-adapter/pull/5#discussion_r2936931498
##########
casbin_adapter/enforcer.py:
##########
@@ -12,7 +12,7 @@
class ProxyEnforcer(Enforcer):
_initialized = False
- db_alias = "default"
+ db_alias = getattr(settings, "CASBIN_DB_ALIAS", "default")
Review Comment:
Using `django.conf.settings` at import time is generally acceptable, but can
be moved to `ready` for extra pre-cautions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]