When object is self referencing with a cascade delete rule, it ends up in a recursive loop. Following commit fixes this behavior by avoiding self cascading, and also removes a bugged line https://github.com/MongoEngine/mongoengine/commit/e64eff0c17720c4b8ee9cf17c06bd4ff394370cd