mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 13:14:28 +03:00
Update allauth documentation links (#4786)
This commit is contained in:
parent
19bfd54665
commit
a035a11874
|
@ -25,7 +25,7 @@ class SocialAccountAdapter(DefaultSocialAccountAdapter):
|
|||
"""
|
||||
Populates user information from social provider info.
|
||||
|
||||
See: https://django-allauth.readthedocs.io/en/latest/advanced.html?#creating-and-populating-user-instances
|
||||
See: https://docs.allauth.org/en/latest/socialaccount/advanced.html#creating-and-populating-user-instances
|
||||
"""
|
||||
user = super().populate_user(request, sociallogin, data)
|
||||
if not user.name:
|
||||
|
|
|
@ -10,7 +10,7 @@ User = get_user_model()
|
|||
|
||||
if settings.DJANGO_ADMIN_FORCE_ALLAUTH:
|
||||
# Force the `admin` sign in process to go through the `django-allauth` workflow:
|
||||
# https://django-allauth.readthedocs.io/en/stable/advanced.html#admin
|
||||
# https://docs.allauth.org/en/latest/common/admin.html#admin
|
||||
admin.site.login = decorators.login_required(admin.site.login) # type: ignore[method-assign]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user