[Answer]-Django – how to apply custom template filter to absolute url

1👍

Requests do not have a get_absolute_url method.

You want to use request.path or request.get_full_path. The second includes any query string.

See the docs on request attributes for more info.

Leave a comment