equal
deleted
inserted
replaced
|
1 from social_auth.views import list as social_list |
|
2 from django.contrib.auth.views import login as django_login |
|
3 |
|
4 from django.contrib.auth import REDIRECT_FIELD_NAME |
|
5 from django.contrib.auth.forms import AuthenticationForm |
|
6 |
|
7 def login(request, template_name='registration/login.html', |
|
8 redirect_field_name=REDIRECT_FIELD_NAME, |
|
9 authentication_form=AuthenticationForm, |
|
10 current_app=None): |
|
11 |
|
12 extra_context = {'social_list': social_list} |
|
13 |
|
14 return django_login(request, template_name,redirect_field_name,authentication_form,current_app,extra_context) |