tangaza/Tangaza — Issue #6: Exception Value: global name 'Groups' is not defined
Author: ledlie
Created: 2012-03-03 21:58:07+00:00
State: open

Environment:

Request Method: POST
Request URL: http://localhost/admin/Tangaza/organization/
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/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/contrib/admin/options.py" in changelist_view
1049. response = self.response_action(request, queryset=cl.get_query_set())
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in response_action
807. response = func(self, request, queryset)
File "/usr/share/tangaza/django/tangaza/apache/../../tangaza/Tangaza/admin.py" in activate_selected
263. obj.activate()
File "/usr/share/tangaza/django/tangaza/apache/../../tangaza/Tangaza/models.py" in activate
316. groups = Groups.objects.filter(org = self)

Exception Type: NameError at /admin/Tangaza/organization/
Exception Value: global name 'Groups' is not defined