Michael Manfre avatar Michael Manfre committed c604871

Remove support for Django v1.3 and earlier versions

Comments (0)

Files changed (2)

docs/changelog.txt

 v1.4 (In Development)
 ---------------------
 
+- Support for Django v1.3 has been removed.
 
 
 v1.3

sqlserver_ado/base.py

     """
     Returns True if value is a valid IP address, otherwise False.
     """
-    try:
-        # IPv6 added with Django 1.4
-        from django.core.validators import validate_ipv46_address as ip_validator
-    except ImportError:
-        # Fallback to only IPv4 for older Django
-        from django.core.validators import validate_ipv4_address as ip_validator
-    
+    # IPv6 added with Django 1.4
+    from django.core.validators import validate_ipv46_address as ip_validator
+
     try:
         ip_validator(value)
     except ValidationError:
         
         super(DatabaseWrapper, self).__init__(*args, **kwargs)
         
-        try:
-            # django < 1.3
-            self.features = DatabaseFeatures()
-        except TypeError:
-            # django >= 1.3
-            self.features = DatabaseFeatures(self)
-
-        try:
-            self.ops = DatabaseOperations()
-        except TypeError:
-            self.ops = DatabaseOperations(self)
-        
+        self.features = DatabaseFeatures(self)
+        self.ops = DatabaseOperations(self)
         self.client = BaseDatabaseClient(self)
         self.creation = DatabaseCreation(self) 
         self.introspection = DatabaseIntrospection(self)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.