- Added: Support for Django migrations (>=1.7) thanks to
Field.deconstruct()
.
- Added: Ability to specify
secret_key
as an argument to the field constructor (via markkennedy). - Added:
EncryptedUSPhoneNumberField
andEncryptedUSSocialSecurityNumberField
now try to import from the standalone django-localflavor before falling back to the version included in Django (this is necessary to support Django 1.6 and newer) (via mjacksonw).
- Fixed: Django admin needs to be able to create blank instances of the fields in order to create a new model. This broke with
BaseEncryptedNumberField
. (via defrex) - Fixed:
block_type
wasn't added to the south rules. (via defrex) - Fixed: Newer code paths with
block_type
specified couldn't reuse thecipher
object on the field class.to_python
was already redefining it before decrypting the value, butget_db_prep_value
wasn't before encrypting. The first time you used a model it would be fine, but the second would fail. Thus the tests were passing but the classes were functionally useless in an application. (via defrex)
- Added:
EncryptedUSSocialSecurityNumberField
, which handles the special-case logic of validating and encrypting US Social Security Numbers, usingdjango.contrib.localflavor.us.forms.USSocialSecurityNumberField
. (via Brooks Travis) - Fixed: Issue #21.
- Changed:
django_fields.fields.BaseEncryptedField
now supports specification of cipherblock_type
via keyword argument. (via kromem) - Added: Deprecation warning for fields that do not specify a
block_type
.
- Added: Class
django_fields.models.ModelWithPrivateFields
, which allows to use private fields, starting from two underscores. - Fixed:
BaseEncryptedDateField.get_db_prep_value
errors. - Changed: Now virtualenv is used for test enviroment. Buildout.cfg was removed.
- Fixed:
EOFError
handling inPickleField
. - Changed: Buildout file was changed to test against Django 1.2.5 and include
PyCrypto
.
- Added:
EncryptedEmail
andUSPhoneNumber
fields. - Added:
EncryptedNumber
fields. - Added:
EncryptedDateTimeField
. - Added:
EncryptedDateField
class. - Added: South support.
- Added: Unit tests and associated utility functions.
- Fixed: Deprecation warnings related to the settings in example project.
- Fixed: Deprecation warnings, related to
get_db_prep_vasue
. - Fixed: Edge case in encryption consistency.
- Changed:
EncryptedCharField
now enforces max length.
- Added:
PickleField
class. - Added: Encrypt field.
- Added: Buildout config and example application.
- Added:
setup.py
andMANIFEST.in.
- Fixed: Issue #1 - "
EncryptedCharField
raises a traceback in the django admin". - Fixed:
max_length
issue. - Changed: Now
__import__
compatible with python 2.4 inBaseEncryptedField.__init__
. - Changed: Code was moved to
src
. - Changed: Get rid of custom string class. It was replaced with string prefix.
- Changed: Settings were changed to test with mysql.