Improve connect/disconnect
- document disconnect + sample of usage - add more test cases to prevent github issues regressions
This commit is contained in:
@@ -5,7 +5,7 @@ Changelog
|
||||
Development
|
||||
===========
|
||||
- expose `mongoengine.connection.disconnect` and `mongoengine.connection.disconnect_all`
|
||||
- POTENTIAL BREAKING CHANGE: Fixes in connect/disconnect methods
|
||||
- POTENTIAL BREAKING CHANGE: Fixes in connect/disconnect methods #565 #566
|
||||
- calling `connect` 2 times with the same alias and different parameter will raise an error (should call disconnect first)
|
||||
- disconnect now clears `mongoengine.connection._connection_settings`
|
||||
- disconnect now clears the cached attribute `Document._collection`
|
||||
|
Reference in New Issue
Block a user