fix bad welcome page and login
parent
af8c3ff1fd
commit
a22e5e95e5
|
@ -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:
|
||||
|
|
4
urls.py
4
urls.py
|
@ -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')),
|
||||
|
|
Loading…
Reference in New Issue