Opened 16 years ago
Last modified 13 years ago
#11103 closed
AttributeError: 'ImageFieldFile' object has no attribute 'name' — at Initial Version
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ImageFieldFile | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 278, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 636, in call
return self.application(environ, start_response)
File "/usr/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 245, in call
response = middleware_method(request, response)
File "/usr/lib/python2.6/dist-packages/django/contrib/sessions/middleware.py", line 36, in process_response
request.session.save()
File "/usr/lib/python2.6/dist-packages/django/contrib/sessions/backends/db.py", line 53, in save
session_data = self.encode(self._get_session(no_load=must_create)),
File "/usr/lib/python2.6/dist-packages/django/contrib/sessions/backends/base.py", line 88, in encode
pickled = pickle.dumps(session_dict, pickle.HIGHEST_PROTOCOL)
File "/usr/lib/python2.6/dist-packages/django/db/models/fields/files.py", line 139, in getstate
return {'name': self.name, 'closed': False, '_committed': True, '_file': None}