1. Ramiro Morales
  2. django-sqlserver

Commits

Mikhail Denisenko  committed 68c851a

fixed python3 error

  • Participants
  • Parent commits 2979b2a
  • Branches default

Comments (0)

Files changed (1)

File sqlserver/fields.py

View file
  • Ignore whitespace
 from django.forms import ValidationError
 from django.utils import timezone
 from django.utils.translation import ugettext_lazy as _
+from django.utils import six
 
 
 __all__ = (
 BigIntegerField = models.BigIntegerField
 
 def convert_microsoft_date_to_isoformat(value):
-    if isinstance(value, basestring):
+    if isinstance(value, six.string_types):
         value = value.replace(' +', '+').replace(' -', '-')
     return value