1. Jannis Leidel
  2. south

Commits

Andrew Godwin  committed 999e51d

Fix conn->connection bug (thanks to aherok)

  • Participants
  • Parent commits 395dea2
  • Branches 0.7

Comments (0)

Files changed (1)

File south/db/generic.py

View file
         """
         setting_name = setting_name.upper()
         connection = self._get_connection() 
-        if not hasattr(conn, 'settings_dict'):
+        if not hasattr(connection, 'settings_dict'):
             # Django 1.1 and below
             return getattr(settings, "DATABASE_%s" % setting_name) 
         else:
             # Django 1.2 and above
-            return conn.settings_dict[setting_name] 
+            return connection.settings_dict[setting_name] 
 
     def _has_setting(self, setting_name):
         """