django/django — pull request #82 by manfre (2012-05-18 22:50:40+00:00)
Title: Fixed #18347 -- Wrapped raw identity inserts in tests.

Added enable_identity_insert, disable_identity_insert, and
contextmanager identity_insert_enabled to DatabaseOperations for
database backends that need to take special actions to allow
identity inserts.

All raw insert statements that set a value in to the identity field
should include these guards to allow all database backends to
function.