mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +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:
		| @@ -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) | ||||
		Reference in New Issue
	
	Block a user