Ticket #15590: filefield-path-set.diff
File filefield-path-set.diff, 592 bytes (added by , 14 years ago) |
---|
-
db/models/fields/files.py
63 63 def _get_path(self): 64 64 self._require_file() 65 65 return self.storage.path(self.name) 66 path = property(_get_path)67 66 67 def _set_path(self, path): 68 self.__init__(self.instance, self.field, path) 69 70 path = property(_get_path, _set_path, _del_file) 71 68 72 def _get_url(self): 69 73 self._require_file() 70 74 return self.storage.url(self.name)