Skip to content

Commit

Permalink
Fix issues with importing the Login form
Browse files Browse the repository at this point in the history
The Login form lives in openstack_auth.forms and should be directly
imported from that file.

Change-Id: I42808530024bebb01604adbf4828769812856bf3
Closes-Bug: #1332149
(cherry picked from commit 345ccc9)
  • Loading branch information
jpichon authored and niuzhenguo committed Jun 24, 2014
1 parent 07c097f commit 19634d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openstack_dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import horizon

from openstack_auth import views
from openstack_auth import forms


def get_user_home(user):
Expand All @@ -32,7 +32,7 @@ def get_user_home(user):
def splash(request):
if request.user.is_authenticated():
return shortcuts.redirect(get_user_home(request.user))
form = views.Login(request)
form = forms.Login(request)
request.session.clear()
request.session.set_test_cookie()
return shortcuts.render(request, 'splash.html', {'form': form})

0 comments on commit 19634d6

Please sign in to comment.