Skip to content

Commit

Permalink
Issue #68 Short URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Jan 30, 2012
1 parent 439c32c commit 1427dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/photo_manager/api.py
Expand Up @@ -61,6 +61,7 @@ def dehydrate(self, bundle):
thumb_obj = get_thumbnail(bundle.obj.image, "240x165")
thumb_square = get_thumbnail(bundle.obj.image, "75x75", crop="center")
thumb_large = get_thumbnail(bundle.obj.image, "1024x768")
bundle.data['short_url'] = "/f/%s/" % bundle.obj.id
bundle.data['thumb'] = thumb_obj.url
bundle.data['thumb_square'] = thumb_square.url
bundle.data['thumb_large'] = thumb_large.url
Expand Down

0 comments on commit 1427dfb

Please sign in to comment.