Add a @root_url decorator for use with get_absolute_url implementations.

Review Request #1816 — Created Oct. 11, 2010 and submitted

Information

Djblets

Reviewers

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.
chipx86
  1. Looks good. One comment.
  2. djblets/util/decorators.py (Diff revision 1)
     
     
    Can we import this at the top of the file? Might save on call times overall.
    1. Sure! Thanks for the quick review.
  3.