These changes are used to allow composite primary key in django (a not-yet-published unstable project still in development).