diff -uprN django.orig/db/models/fields/files.py django/db/models/fields/files.py
old
|
new
|
class FileDescriptor(object):
|
115 | 115 | |
116 | 116 | def __get__(self, instance=None, owner=None): |
117 | 117 | if instance is None: |
118 | | raise AttributeError, "%s can only be accessed from %s instances." % (self.field.name(self.owner.__name__)) |
| 118 | raise AttributeError('%s can only be accessed from %s instances.' % (self.field.name, owner.__name__)) |
119 | 119 | file = instance.__dict__[self.field.name] |
120 | 120 | if not isinstance(file, FieldFile): |
121 | 121 | # Create a new instance of FieldFile, based on a given file name |