1. Shai Berger
  2. south


Shai Berger  committed 267ffea

Protect access to database.features.confirm for Django<1.3

  • Participants
  • Parent commits 5bb43f5
  • Branches default

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
         "Tests the database using feature detection to see if it has DDL transactional support"
         connection = self._get_connection()
-        if not connection.features._confirmed:
+        if hasattr(connection.features, "confirm") and not connection.features._confirmed:
         # Django 1.3's MySQLdb backend doesn't raise DatabaseError
         exceptions = (DatabaseError, )