Permalink
Browse files

Fixed a final bug before stuffing up to github.

  • Loading branch information...
1 parent 1210c46 commit 45a02f1af64ffa5ee5fddd8930c1507def786ee4 @jacobian jacobian committed Apr 13, 2009
Showing with 3 additions and 1 deletion.
  1. +2 −0 README
  2. +1 −1 src/shorturls/templatetags/shorturl.py
View
@@ -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
=====
@@ -30,7 +30,7 @@ def render(self, context):
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 = {

0 comments on commit 45a02f1

Please sign in to comment.