vimzoomer opened a new pull request, #5: URL: https://github.com/apache/casbin-python-django-orm-adapter/pull/5
Hi, I have two fixes for the adapter: 1. Accessing database in `ready` is discouraged by Django, since `ProxyEnforcer` lazy-initializes Casbin anyway, initialization should be removed from `CasbinAdapterConfig`. 2. Infinite recursion in `__getattribute__(self, name)` caused by `self.db_alias`. Also, If `enforcer` is imported in testing environment it breaks Django's test runner which calls `__class__` on every imported module during test discovery. -- 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]
