Clicking the copy button produces the following error in Python 2.6.8 in OS X Snow Leopard:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/report_builder/report/1/create_copy/
Django Version: 1.5.1
Python Version: 2.6.8
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'template',
'agendas',
'people',
'committees',
'meeting_calendars',
'menu',
'report_builder',
'django.contrib.admin',
'django.contrib.admindocs')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/Users/smeinel/.virtualenvs/oof/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/smeinel/.virtualenvs/oof/lib/python2.6/site-packages/django/contrib/admin/views/decorators.py" in _checklogin
17. return view_func(request, *args, **kwargs)
File "/Users/smeinel/.virtualenvs/oof/lib/python2.6/site-packages/report_builder/views.py" in create_copy
727. ('name', '{} (copy)'.format(report.name)),
Exception Type: ValueError at /report_builder/report/1/create_copy/
Exception Value: zero length field name in format
Naming the format field in line 727 should fix the issue.