Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #413 -- get_file_url() for FileFields now uses proper slashes o…

…n Windows. Thanks, Adam Endicott

git-svn-id: http://code.djangoproject.com/svn/django/trunk@579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit abe7fb8173326567463d21257db73647d4a7b365 1 parent 5569c75
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/meta/__init__.py
View
2  django/core/meta/__init__.py
@@ -996,7 +996,7 @@ def method_get_file_filename(field, self):
def method_get_file_url(field, self):
if getattr(self, field.name): # value is not blank
import urlparse
- return urlparse.urljoin(settings.MEDIA_URL, getattr(self, field.name))
+ return urlparse.urljoin(settings.MEDIA_URL, getattr(self, field.name)).replace('\\', '/')
return ''
def method_get_file_size(field, self):
Please sign in to comment.
Something went wrong with that request. Please try again.