fix bad welcome page and login

pull/1/head
eric 2013-03-19 10:33:57 -04:00
parent af8c3ff1fd
commit a22e5e95e5
2 changed files with 5 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class FeedbackForm(forms.Form):
class AuthForm(AuthenticationForm):
def __init__(self, request=None, *args, **kwargs):
if request.method == 'GET':
if request and request.method == 'GET':
saved_un= request.COOKIES.get('un', None)
super(AuthForm, self).__init__(initial={"username":saved_un},*args, **kwargs)
else:

View File

@ -21,6 +21,10 @@ urlpatterns = patterns('',
{'template': 'registration/welcome.html',
'extra_context': {'suppress_search_box': True,}
}),
url(r"^accounts/superlogin/welcome/$", direct_to_template,
{'template': 'registration/welcome.html',
'extra_context': {'suppress_search_box': True,}
}),
(r'^api/', include('regluit.api.urls')),
(r'', include('regluit.frontend.urls')),
(r'', include('regluit.payment.urls')),