A bug in mongoengine, see my pull #619