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