sebastian-ardila / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

auth_login_urls tag can't parse the value #188

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 qhm...@gmail.com on 28 Feb 2011 at 8:21