tangaza/Tangaza — Issue #13: server error if create user with no name
Author: ledlie
Created: 2012-03-06 14:55:11+00:00
State: open

KeyError at /admin/Tangaza/watumiaji/add/

'name_text'

Request Method:	POST
Request URL:	http://localhost/admin/Tangaza/watumiaji/add/
Django Version:	1.2.5
Exception Type:	KeyError
Exception Value:

'name_text'

Exception Location:	/usr/share/tangaza/django/tangaza/apache/../../tangaza/Tangaza/forms.py in clean, line 274
Python Executable:	/usr/bin/python
Python Version:	2.7.1
Python Path:	['/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/pymodules/python2.7/ubuntuone-client', '/usr/lib/pymodules/python2.7/ubuntuone-storage-protocol', '/usr/lib/pymodules/python2.7/ubuntuone-control-panel', '/usr/share/tangaza/django/tangaza/apache/../..', None]
Server time:	Mon, 5 Mar 2012 22:34:14 +0300
Environment:

Request Method: POST
Request URL: http://localhost/admin/Tangaza/watumiaji/add/
Django Version: 1.2.5
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'tangaza.Tangaza',
'django.contrib.admin']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'tangaza.Tangaza.forms.ThreadLocals')

Traceback:
File "/usr/lib/pymodules/python2.7/django/core/handlers/base.py" in get_response
100. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in wrapper
288. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapped_view
76. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/views/decorators/cache.py" in _wrapped_view_func
78. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/sites.py" in inner
190. return view(request, *args, **kwargs)
File "/usr/share/tangaza/django/tangaza/apache/../../tangaza/Tangaza/admin.py" in add_view
186. return super(WatumiajiAdmin, self).add_view(request, form_url, extra_context)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapper
21. return decorator(bound_func)(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapped_view
76. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in bound_func
17. return func(self, *args2, **kwargs2)
File "/usr/lib/pymodules/python2.7/django/db/transaction.py" in _commit_on_success
299. res = func(*args, **kw)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in add_view
835. if form.is_valid():
File "/usr/lib/pymodules/python2.7/django/forms/forms.py" in is_valid
121. return self.is_bound and not bool(self.errors)
File "/usr/lib/pymodules/python2.7/django/forms/forms.py" in _get_errors
112. self.full_clean()
File "/usr/lib/pymodules/python2.7/django/forms/forms.py" in full_clean
268. self._clean_form()
File "/usr/lib/pymodules/python2.7/django/forms/forms.py" in _clean_form
296. self.cleaned_data = self.clean()