Skip to content

Commit

Permalink
Truncate encrypted fields before writting to database to ensure field…
Browse files Browse the repository at this point in the history
…s are readable when read back
  • Loading branch information
Ted Schundler committed Apr 26, 2012
1 parent 86602c5 commit b9beb4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions django_extensions/db/fields/encrypted.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class EncryptedCharField(BaseEncryptedField):
__metaclass__ = models.SubfieldBase

def __init__(self, max_length=None, *args, **kwargs):
if max_length:
max_length += len(self.prefix)
super(EncryptedCharField, self).__init__(max_length=max_length, *args, **kwargs)

def get_internal_type(self):
Expand Down

0 comments on commit b9beb4a

Please sign in to comment.