Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid adding an EmailAddress for a user when the same e-mail is being…
… already used by another user. This fixes scott2b#10
- Loading branch information
71b69d2
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.
This made my tests run, and it avoids IntegrityError. Please check whether it makes sense.
I think that big
if
could be simplified (right now there are too many branches), but I don't understand all of them.