Ticket #10296: files.diff
File files.diff, 791 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/files.py
10 10 from django.utils.functional import curry 11 11 from django.db.models import signals 12 12 from django.utils.encoding import force_unicode, smart_str 13 from django.utils.http import urlquote 13 14 from django.utils.translation import ugettext_lazy, ugettext as _ 14 15 from django import forms 15 16 from django.db.models.loading import cache … … 54 55 55 56 def _get_url(self): 56 57 self._require_file() 57 return self.storage.url(self.name)58 return urlquote(self.storage.url(self.name), safe='/:') 58 59 url = property(_get_url) 59 60 60 61 def _get_size(self):