Switch to side-by-side view
--- a/Ming/ming/base.py +++ b/Ming/ming/base.py @@ -78,6 +78,7 @@ self.session = cls.__mongometa__.session self.instance = instance self.cls = cls + self.ensure_indexes() def __call__(self, session): '''In order to use an alternate session, just use Class.mgr(other_session)'''