Commits

Andrew Godwin committed 5f96ede

Fix compatability with Django 1.2

  • Participants
  • Parent commits adb5a9c

Comments (0)

Files changed (1)

File south/db/generic.py

                 field_output.append('UNIQUE')
 
             tablespace = field.db_tablespace or tablespace
-            if tablespace and self._get_connection().features.supports_tablespaces and field.unique:
+            if tablespace and getattr(self._get_connection().features, "supports_tablespaces", False) and field.unique:
                 # We must specify the index tablespace inline, because we
                 # won't be generating a CREATE INDEX statement for this field.
                 field_output.append(self._get_connection().ops.tablespace_sql(tablespace, inline=True))