Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: removed django.parts.media -- it's cruft left over fro…

…m Ellington that isn't helpful in Django at all

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 650d26d32ea7f44e8b11f3105bc4de6201fdbc46 1 parent 7d23d1e
@jacobian jacobian authored
View
0  django/parts/media/__init__.py
No changes.
View
6 django/parts/media/photos.py
@@ -1,6 +0,0 @@
-import re
-
-def get_thumbnail_url(photo_url, width):
- bits = photo_url.split('/')
- bits[-1] = re.sub(r'(?i)\.(gif|jpg)$', '_t%s.\\1' % width, bits[-1])
- return '/'.join(bits)
Please sign in to comment.
Something went wrong with that request. Please try again.