This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import migrations, models | |
from django_cryptography.fields import encrypt | |
app_with_model = 'account' | |
model_with_column = 'User' | |
column_to_encrypt = 'email_address' | |
column_field_class = models.CharField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import re | |
from urllib.parse import urlparse | |
import requests | |
from M2Crypto import X509 | |
_signing_cert_cache = {} | |
_cert_url_re = re.compile( |