Hi all,
I just installed reversion today, and everything seems to be working
except when I try to rollback to a previous revision. I receive the
following error:
=============
TypeError at /admin/lisa/emptycontentpage/1/history/1/
'NoneType' object is not iterable
Request Method: GET
Request URL:
http://127.0.0.1:8000/admin/lisa/emptycontentpage/1/history/1/
Exception Type: TypeError
Exception Value:
'NoneType' object is not iterable
Exception Location: /usr/lib/python2.5/site-packages/reversion/
admin.py in render_revision_form, line 167
Python Executable: /usr/bin/python
Python Version: 2.5.2
Python Path: ['/cygdrive/e/Python/osteoball', '/usr/lib/
python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-cygwin',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/
lib/python2.5/site-packages']
Server time: Thu, 9 Apr 2009 13:53:15 -0700
=============
And here's the traceback for what its worth:
=============
Environment:
Request Method: GET
Request URL:
http://127.0.0.1:8000/admin/lisa/emptycontentpage/1/history/1/
Django Version: 1.1 beta 1 SVN-10285
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'lisa',
'django_extensions',
'reversion']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'djangologging.middleware.LoggingMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py"
in get_response
92. response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/db/transaction.py" in
_commit_on_success
240. res = func(*args, **kw)
File "/usr/lib/python2.5/site-packages/reversion/revisions.py" in
_create_on_success
177. result = func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/reversion/admin.py" in
revision_view
243. return self.render_revision_form(request, obj, version,
revision, context, self.revision_form_template, "../../")
File "/usr/lib/python2.5/site-packages/reversion/admin.py" in
render_revision_form
167. for initial_row in initial:
Exception Type: TypeError at /admin/lisa/emptycontentpage/1/history/1/
Exception Value: 'NoneType' object is not iterable
=============
I've tried multiple times and get the same message.
Any thoughts?