Changeset 8893


Ignore:
Timestamp:
18/12/14 16:30:24 (5 years ago)
Author:
aharwood
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/dj_security/views/dj_security_login.py

    r8892 r8893  
    182182     
    183183        if request.GET.has_key(redirect_field_name): 
    184             request.session[redirect_field_name] = \ 
    185                 urllib.unquote_plus(request.GET.get(redirect_field_name))     
     184            redirect = urllib.unquote_plus(request.GET.get(redirect_field_name)) 
     185            LOGGER.debug("No redirect in session. Setting to: %s" % redirect) 
     186            request.session[redirect_field_name] = redirect 
    186187        else: 
    187             LOGGER.debug("No redirect set. Setting to %s" % settings.LOGIN_REDIRECT_URL) 
     188            LOGGER.debug("No redirect in session. Setting to default: %s" % settings.LOGIN_REDIRECT_URL) 
    188189            request.session[redirect_field_name] = settings.LOGIN_REDIRECT_URL 
    189190                       
Note: See TracChangeset for help on using the changeset viewer.