Changes between Version 1 and Version 2 of Ticket #28567, comment 7


Ignore:
Timestamp:
Oct 23, 2017, 10:50:23 AM (7 years ago)
Author:
George Tantiras

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28567, comment 7

    v1 v2  
    44  After setting the language choice, Django looks for a next parameter in the POST or GET data. If that is found and Django considers it to be a safe URL (i.e. it doesn’t point to a different   host and uses a safe scheme), a redirect to that URL will be performed. Otherwise, Django may fall back to redirecting the user to the URL from the Referer header or, if it is not set, to /, depending on the nature of the request:
    55
    6 And the example -I am using in my code where the problem appeared- has the following line:
     6Also the template that follows this quote - and I am using in the code where the problem appeared- has the following line:
    77
    88{{{
     
    1010}}}
    1111
    12 However, it is not clear how can the variabe {{{ redirect_to }}} be set (in the {{{base.html}}} admin template) and it stays empty.
     12I understand that in a custom view this is easy. However, it is not clear how can the variabe {{{ redirect_to }}} can be set if this code is used in the admin interface, for example in the {{{base.html}}} admin template.
Back to Top