Django raises an ValueError when I edit an object which uses the VersatileImageField.
Creating the object is no problem.
Whether the VersatileImageField uses a ppoi or not does not matter.
Switching back to the default ImageField solves the problem.
I also removed the cache settings in VERSATILEIMAGEFIELD_SETTINGS
(does that actually deactivate the cache?)
Django Version: 1.7
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core',
'versatileimagefield')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
567. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
105. response = view_func(request, *args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
204. return view(request, *args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in change_view
1440. return self.changeform_view(request, object_id, form_url, extra_context)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
29. return bound_func(*args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
105. response = view_func(request, *args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
25. return func.__get__(self, type(self))(*args2, **kwargs2)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/db/transaction.py" in inner
394. return func(*args, **kwargs)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in changeform_view
1394. change_message = self.construct_change_message(request, form, formsets)
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in construct_change_message
972. if form.changed_data:
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/forms/forms.py" in changed_data
440. elif field._has_changed(initial_value, data_value):
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/forms/fields.py" in _has_changed
1082. if field._has_changed(field.to_python(initial), data):
File "/Users/Gregor/Projekte/adClouds/www/venv/lib/python2.7/site-packages/django/forms/fields.py" in to_python
652. file = BytesIO(data.read())
Exception Type: ValueError at /admin/core/cinema/1/
Exception Value: I/O operation on closed file