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

Remove sites dependency #157

Closed
wants to merge 16 commits into from

Conversation

madprime
Copy link
Contributor

@madprime madprime commented Dec 1, 2014

Sites is no longer enabled by default since Django 1.6.x, see: django/django@23fc91a6

Sites was only necessary for one remaining location in the code (email confirmation upon email change in SettingsView), and this code now uses get_current_site to remove that dependency (as is done for the email confirmation done by SignUpView).

I think this change means that the EmailConfirmation.send method will always receive a site keyword argument (so code could be rewritten to depend on receiving a site kwarg). I haven't changed the code more extensively because it's possible some users overriding aspects of this package won't be passing a site argument, and you may want to continue supporting that.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) when pulling 12e61ab on PersonalGenomesOrg:remove-sites-dependency into f2c5941 on pinax:master.

@madprime
Copy link
Contributor Author

madprime commented Dec 1, 2014

#148 may be preferred over my version, but either way I think it would be best to not require Sites for using django-user-accounts. Thanks!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.29%) when pulling 0d93ead on PersonalGenomesOrg:remove-sites-dependency into f2c5941 on pinax:master.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1e7a995 on PersonalGenomesOrg:remove-sites-dependency into * on pinax:master*.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1e7a995 on PersonalGenomesOrg:remove-sites-dependency into * on pinax:master*.

@madprime madprime closed this Apr 13, 2015
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.

None yet

8 participants