Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth_login_urls tag can't parse the value #188

Open
GoogleCodeExporter opened this issue Jan 18, 2016 · 0 comments
Open

auth_login_urls tag can't parse the value #188

GoogleCodeExporter opened this issue Jan 18, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

for example:
{% auth_logout_url request.path %} only treat request.path as a string, but get 
the request.path 's true value.


I fixed this with this way.
line 53: redirect = parser.compile_filter(bits[1])

line 38-42:
    redirect = self.redirect.resolve(context, True)
    if self.create_login_url:
      return users.create_login_url(redirect)
    else:
      return users.create_logout_url(redirect)

Thanks!

Original issue reported on code.google.com by [email protected] on 28 Feb 2011 at 8:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant