diff options
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | src/shorturls/templatetags/shorturl.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,8 @@ Most code was originally by Simon Willison; see http://simonwillison.net/2009/Apr/11/revcanonical/ for details. Improved slightly and packaged by Jacob Kaplan-Moss. +Patches welcome: http://github.com/jacobian/django-shorturls + Usage ===== diff --git a/src/shorturls/templatetags/shorturl.py b/src/shorturls/templatetags/shorturl.py index 2eef0ce..e1781cc 100644 --- a/src/shorturls/templatetags/shorturl.py +++ b/src/shorturls/templatetags/shorturl.py @@ -30,7 +30,7 @@ class ShortURL(template.Node): tinyid = base62.from_decimal(obj.pk) if hasattr(settings, 'SHORT_BASE_URL') and settings.SHORT_BASE_URL: - return urlparse.urljoin(settings.SHORT_BASE_URL, prefix+) + return urlparse.urljoin(settings.SHORT_BASE_URL, prefix+tinyid) try: return urlresolvers.reverse('shorturls.views.redirect', kwargs = { |
