Skip to content

Commit 29669be

Browse files
author
Tabatha Memmott
committed
Merge branch 'master' into developDemo
2 parents 0e3fb4a + ef17cb3 commit 29669be

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You're good to go now!
3838
Registration (optional)
3939
-----------------------
4040

41-
1. If you want to enable standard registration process you will need to install ``django-allauth`` - see this doc for installation http://django-allauth.readthedocs.org/en/latest/installation.html.
41+
1. If you want to enable standard registration process you will need to install ``django-allauth`` by using ``pip install django-rest-auth[extras]`` or ``pip install django-rest-auth[with_social]``.
4242

4343
2. Add ``allauth``, ``allauth.account`` and ``rest_auth.registration`` apps to INSTALLED_APPS in your django settings.py:
4444

rest_auth/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_password_reset(self):
225225
self.post(self.login_url, data=payload, status_code=200)
226226

227227
def test_password_reset_with_email_in_different_case(self):
228-
user = get_user_model().objects.create_user(self.USERNAME, self.EMAIL.lower(), self.PASS)
228+
get_user_model().objects.create_user(self.USERNAME, self.EMAIL.lower(), self.PASS)
229229

230230
# call password reset in upper case
231231
mail_count = len(mail.outbox)

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
'djangorestframework>=3.1.0',
3333
'six>=1.9.0',
3434
],
35+
extras_require={
36+
'with_social': ['django-allauth>=0.24.1'],
37+
},
38+
tests_require=[
39+
'responses>=0.5.0',
40+
'django-allauth>=0.24.1',
41+
],
3542
test_suite='runtests.runtests',
3643
include_package_data=True,
3744
# cmdclass={},

0 commit comments

Comments
 (0)