Browse Source

Redirect to homepage (in sandbox) after login

master
David Winterbottom 12 years ago
parent
commit
cc8a4b6ebf
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      oscar/apps/customer/views.py
  2. 1
    1
      sites/sandbox/settings.py

+ 2
- 2
oscar/apps/customer/views.py View File

@@ -125,12 +125,12 @@ class AccountAuthView(RegisterUserMixin, TemplateView):
125 125
         kwargs['prefix'] = self.login_prefix
126 126
         kwargs['initial'] = {
127 127
             'redirect_url': self.request.GET.get(self.redirect_field_name, ''),
128
-            }
128
+        }
129 129
         if request and request.method in ('POST', 'PUT'):
130 130
             kwargs.update({
131 131
                 'data': request.POST,
132 132
                 'files': request.FILES,
133
-                })
133
+            })
134 134
         return kwargs
135 135
 
136 136
     def get_registration_form(self, request=None):

+ 1
- 1
sites/sandbox/settings.py View File

@@ -300,7 +300,7 @@ AUTHENTICATION_BACKENDS = (
300 300
     'django.contrib.auth.backends.ModelBackend',
301 301
 )
302 302
 
303
-LOGIN_REDIRECT_URL = '/accounts/'
303
+LOGIN_REDIRECT_URL = '/'
304 304
 APPEND_SLASH = True
305 305
 
306 306
 # Haystack settings

Loading…
Cancel
Save