Changes between Version 1 and Version 2 of Ticket #28567, comment 7
- Timestamp:
- Oct 23, 2017, 10:50:23 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28567, comment 7
v1 v2 4 4 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: 5 5 6 A nd the example -I am using in mycode where the problem appeared- has the following line:6 Also the template that follows this quote - and I am using in the code where the problem appeared- has the following line: 7 7 8 8 {{{ … … 10 10 }}} 11 11 12 However, it is not clear how can the variabe {{{ redirect_to }}} be set (in the {{{base.html}}} admin template) and it stays empty.12 I 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.