Skip to content

Commit

Permalink
Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
nautilebleu committed Oct 16, 2015
1 parent 82c8ade commit 5a53b87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/django_fields/fields.py
Expand Up @@ -9,7 +9,6 @@
from django.forms import fields
from django.db import models
from django.conf import settings
from django.utils.encoding import smart_str, force_unicode
from django.utils.translation import ugettext_lazy as _
from Crypto import Random
from Crypto.Random import random
Expand All @@ -31,8 +30,10 @@

if sys.version_info[0] == 3:
PYTHON3 = True
from django.utils.encoding import smart_str, force_text as force_unicode
else:
PYTHON3 = False
from django.utils.encoding import smart_str, force_unicode


class BaseEncryptedField(models.Field):
Expand Down

0 comments on commit 5a53b87

Please sign in to comment.