We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This section of the EncryptedMixin
if not self.max_length: self.max_length = 10 self.unencrypted_max_length = self.max_length self.max_length = calc_encrypted_length(self.unencrypted_max_length)
Can be written better
self.unencrypted_max_length = self.max_length or 10 self.max_length = calc_encrypted_length(self.unencrypted_max_length)
This saves you the if statement and reassignment.
The text was updated successfully, but these errors were encountered:
Really, since unencrypted_max_length isn't used anywhere else, the whole thing could be:
self.max_length = calc_encrypted_length(self.max_length or 10)
Sorry, something went wrong.
Merge pull request foundertherapy#1 from enderlabs/dev
a47e735
Allow key rotation
danaspiegel
No branches or pull requests
This section of the EncryptedMixin
Can be written better
This saves you the if statement and reassignment.
The text was updated successfully, but these errors were encountered: