Ticket #12180: 12180.diff

File 12180.diff, 663 bytes (added by Christophe Pettus, 15 years ago)
  • django/db/backends/postgresql_psycopg2/base.py

     
    6767        autocommit = self.settings_dict["DATABASE_OPTIONS"].get('autocommit', False)
    6868        self.features.uses_autocommit = autocommit
    6969        self._set_isolation_level(int(not autocommit))
     70        self.features.can_return_id_from_insert = autocommit
    7071        self.ops = DatabaseOperations()
    7172        self.client = DatabaseClient(self)
    7273        self.creation = DatabaseCreation(self)
Back to Top