Skip to content

Instantly share code, notes, and snippets.

@Kronuz
Created May 11, 2012 23:15
Show Gist options
  • Save Kronuz/2663040 to your computer and use it in GitHub Desktop.
Save Kronuz/2663040 to your computer and use it in GitHub Desktop.
ImageSpecFieldFile error
Traceback (most recent call last):
File "../libs/celery/concurrency/processes/pool.py", line 239, in run
return self.body()
File "../libs/celery/concurrency/processes/pool.py", line 288, in body
put(task)
File "/Library/Python/2.7/site-packages/django/db/models/fields/files.py", line 134, in __getstate__
return {'name': self.name, 'closed': False, '_committed': True, '_file': None}
File "../apps-ext/imagekit/models/fields/files.py", line 114, in name
filename = self.source_file.name
File "../apps-ext/imagekit/models/fields/files.py", line 18, in source_file
field_name = getattr(self.field, 'image_field', None)
AttributeError: 'ImageSpecFieldFile' object has no attribute 'field'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment