mirror of
https://github.com/django/django.git
synced 2025-04-21 15:54:37 +00:00
magic-removal: removed django.parts.media -- it's cruft left over from 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
This commit is contained in:
parent
7d23d1e798
commit
650d26d32e
@ -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)
|
Loading…
x
Reference in New Issue
Block a user