-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
Accounts: For signup, login and password reset, username and password should be treated case insensitive #2067
base: master
Are you sure you want to change the base?
Conversation
…sulting thumbnail needs to be saved as a PNG. For stephenmcd#1925
…el"]; Fixes stephenmcd#2054 due to Bleach version change
… and password reset forms. More unit test cases added for accounts to cover these cases. Fixes stephenmcd#2066
…der versions of Django won't support the form I'm using in the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Is it ready to be merged?
@@ -429,12 +429,17 @@ def thumbnail( | |||
pad_container = Image.new("RGBA", pad_size, padding_color) | |||
pad_container.paste(image, (pad_left, pad_top)) | |||
image = pad_container | |||
# Make thumbnail a PNG - required if original isn't one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change probably doesn't need to go back to main, I'm sure there's a better solution to changing a JPG's thumbnail to PNG (to allow for transparency background when using padding). Feel free to skip these lines on merge
Fixes #2066
My apologies that this branch contains other unrelated fixes, but some of these are required to run with the latest versions of Bleach/PIL and thus are part of my fork already.