Django compatibility: more sumo cleanup.