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.
Source:stackexchange.com