Description

If you want to have (optional) extra parameters for get_absolute_url(), that's not possible because this method gets curried (because of ABSOLUTE_URL_OVERRIDES). But optional extra-parameters could be an enhancement and a simple way of creating URLs using parameters (for example some URL to edit the object).

I wanted to use this, because I tried to implement an link_to-template tag that can get parameters to add extra functionality to the simple get_absolute_url()-method. This would allow a simple way to get links for object-actions like edit/delete/move/...

It can be fixed by allowing *args and kwargs in django.db.models.base.get_absolute_url:

Change History (7)

Done this using a second method to get the url now, so I lower the priority/severity. But perhaps someone could look after this anyway.
(second method has one advantage btw: you can use the result of get_absolute_url() there, which makes thing easier)

(In [6732]) Fixed #3291 -- Allow calling get_absolute_url() with extra positional and
keyword arguments. Not usually required, but useful for people wanting to write
some kinds of customisations. Patch from hawkeye.