defrex / django-encrypted-fields

This is a collection of Django Model Field classes that are encrypted using Keyczar.
MIT License
193 stars 60 forks source link

Replace 'SubfieldBase' with 'from_db_value()' #14

Closed shanecav84 closed 8 years ago

shanecav84 commented 8 years ago

SubfieldBase is deprecated as of Django 1.8 and will be removed in Django 1.10. This pull request simply removes the EncryptedFieldMixin metaclass variable and its SubfieldBase value, and adds _from_dbvalue().

Since we don't need to do anything with our field values beyond decrypting them, _from_dbvalue() simply calls _topython() to decrypt the data and return the proper Python object.

Other, minor updates:

defrex commented 8 years ago

This is excellent, thank you.

shanecav84 commented 8 years ago

Awesome. Thanks! 🎉