Skip to content
Browse files

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

…n Windows. Thanks, Adam Endicott

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5569c75 commit abe7fb8173326567463d21257db73647d4a7b365 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/meta/
2 django/core/meta/
@@ -996,7 +996,7 @@ def method_get_file_filename(field, self):
def method_get_file_url(field, self):
if getattr(self, # value is not blank
import urlparse
- return urlparse.urljoin(settings.MEDIA_URL, getattr(self,
+ return urlparse.urljoin(settings.MEDIA_URL, getattr(self,'\\', '/')
return ''
def method_get_file_size(field, self):

0 comments on commit abe7fb8

Please sign in to comment.
Something went wrong with that request. Please try again.