Skip to content
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

Django 1.11 #520

Merged
merged 1 commit into from
Apr 20, 2017
Merged

Django 1.11 #520

merged 1 commit into from
Apr 20, 2017

Conversation

sdreher
Copy link
Collaborator

@sdreher sdreher commented Apr 19, 2017

No description provided.

@@ -14,6 +14,7 @@ class Meta:
password = factory.PostGenerationMethodCall('set_password', 'test')
last_name = factory.Sequence(lambda n: "Last%d" % n)
first_name = factory.Sequence(lambda n: "First%d" % n)
email = factory.Sequence(lambda n: "username%d@localhost" % n)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious how you figured out that this was missing. I started a 1.11 branch, did the usual bits and hit the failing tests on the mail stuff. Got distracted with other stuff before I could really dig into it, but I don't think this fix was very obvious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put a breakpoint in the DenyFacultyView.send_denied_email and traced through send_mail until I hit this condition. I guessed at that point that the UserFactory was not creating the user with an email.

Looks like this commit changed the behavior in 1.11: django/django@8858631

@thraxil thraxil merged commit 3b19bfa into master Apr 20, 2017
@ctlarcher ctlarcher deleted the django-1.11 branch April 21, 2017 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants