{"action":"created","issue":{"url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/22","repository_url":"https://api.github.com/repos/defrex/django-encrypted-fields","labels_url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/22/comments","events_url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/22/events","html_url":"https://github.com/defrex/django-encrypted-fields/issues/22","id":173188803,"number":22,"title":"Error on save","user":{"login":"shawnzam","id":1268552,"avatar_url":"https://avatars5.githubusercontent.com/u/1268552?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnzam","html_url":"https://github.com/shawnzam","followers_url":"https://api.github.com/users/shawnzam/followers","following_url":"https://api.github.com/users/shawnzam/following{/other_user}","gists_url":"https://api.github.com/users/shawnzam/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnzam/subscriptions","organizations_url":"https://api.github.com/users/shawnzam/orgs","repos_url":"https://api.github.com/users/shawnzam/repos","events_url":"https://api.github.com/users/shawnzam/events{/privacy}","received_events_url":"https://api.github.com/users/shawnzam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-25T12:23:26Z","updated_at":"2017-07-14T15:17:45Z","closed_at":null,"body":"I am getting the following error when trying to do a create\n\n```\n[Wed Aug 24 16:18:39 2016] [error]   File \"/home/vagrant/.virtualenvs/turktools/lib/python3.4/site-packages/encrypted_fields/fields.py\", line 163, in to_python\n[Wed Aug 24 16:18:39 2016] [error]     if value is None or not isinstance(value, types.StringTypes):\n[Wed Aug 24 16:18:39 2016] [error] AttributeError: 'module' object has no attribute 'StringTypes'\n```\n\nFull trace:\nhttp://dpaste.com/0SWTFF9\n\nwith my models.py setup:\n\n``` python\nfrom django.db import models\nfrom django.contrib.auth.models import User\nfrom encrypted_fields import EncryptedCharField\n\n\nclass Profile(models.Model):\n    user = models.OneToOneField(User, on_delete=models.CASCADE)\n    aws_key = EncryptedCharField(max_length=50)\n    aws_secret_key = EncryptedCharField(max_length=50)\n```\n\nAny ideas?\n\n[UPDATE:] I added a pull request: https://github.com/defrex/django-encrypted-fields/pull/23\n"},"comment":{"url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/comments/315386510","html_url":"https://github.com/defrex/django-encrypted-fields/issues/22#issuecomment-315386510","issue_url":"https://api.github.com/repos/defrex/django-encrypted-fields/issues/22","id":315386510,"user":{"login":"defrex","id":57580,"avatar_url":"https://avatars6.githubusercontent.com/u/57580?v=4","gravatar_id":"","url":"https://api.github.com/users/defrex","html_url":"https://github.com/defrex","followers_url":"https://api.github.com/users/defrex/followers","following_url":"https://api.github.com/users/defrex/following{/other_user}","gists_url":"https://api.github.com/users/defrex/gists{/gist_id}","starred_url":"https://api.github.com/users/defrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defrex/subscriptions","organizations_url":"https://api.github.com/users/defrex/orgs","repos_url":"https://api.github.com/users/defrex/repos","events_url":"https://api.github.com/users/defrex/events{/privacy}","received_events_url":"https://api.github.com/users/defrex/received_events","type":"User","site_admin":false},"created_at":"2017-07-14T15:17:45Z","updated_at":"2017-07-14T15:17:45Z","body":"I have a PR open to port to Python 3 (https://github.com/defrex/django-encrypted-fields/pull/27). Unfortunately it's blocked upstream by keyczar."}}
{"actor":{"display_login":"defrex"}}