Commits

Michael Manfre committed f2c916e

Issue 98: Add support for django 1.3 change to DatabaseFeatures class.

Comments (0)

Files changed (1)

sqlserver_ado/base.py

     def __init__(self, *args, **kwargs):
         super(DatabaseWrapper, self).__init__(*args, **kwargs)
         
-        self.features = DatabaseFeatures()
+        try:
+            # django < 1.3
+            self.features = DatabaseFeatures()
+        except TypeError:
+            # django >= 1.3
+            self.features = DatabaseFeatures(self)
         self.ops = DatabaseOperations()
         
         self.client = BaseDatabaseClient(self)