Plays nice with mongoengine.