-
-
djblets/util/decorators.py (Diff revision 1) Can we import this at the top of the file? Might save on call times overall.
Add a @root_url decorator for use with get_absolute_url implementations.
Review Request #1816 — Created Oct. 11, 2010 and submitted
Information | |
---|---|
david | |
Djblets | |
Reviewers | |
djblets | |
Add a @root_url decorator for use with get_absolute_url implementations. Since we have to hack around @permalink when using captured parameters with reverse lookups, we need a nice way of adding the SITE_ROOT to any returned URLs.
Set up a test site with a model that used @root_url on the get_absolute_url method and checked results in the django shell.