Python Traceback
14 Dec 2011
 
 
 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Environment:
Request Method: POST
Request URL: http://10.0.2.15:8000/admin/contacts/company/
Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'cities',
'django.contrib.gis',
'mptt',
'section',
'company',
'authority',
'contacts',
'registration',
'email_usernames',
'accounts',
'dashboard',
'person',
'django.contrib.comments']
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 "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper
307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
79. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner
197. return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper
28. return bound_func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func
24. return func(self, *args2, **kwargs2)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in changelist_view
1079. response = self.response_action(request, queryset=cl.get_query_set())
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in response_action
836. response = func(self, request, queryset)
File "/usr/local/lib/python2.7/dist-packages/django_authority-0.4-py2.7.egg/authority/admin.py" in edit_permissions
62. FormSet = inline.get_formset(request, obj)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/generic.py" in get_formset
426. return generic_inlineformset_factory(self.model, **defaults)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/generic.py" in generic_inlineformset_factory
392. fields=fields, exclude=exclude, max_num=max_num)
File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in modelformset_factory
657. formfield_callback=formfield_callback)
File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in modelform_factory
399. return ModelFormMetaclass(class_name, (form,), form_class_attrs)
File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in __new__
205. opts.exclude, opts.widgets, formfield_callback)
File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in fields_for_model
163. formfield = formfield_callback(f, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py" in _curried
55. return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/usr/local/lib/python2.7/dist-packages/django_authority-0.4-py2.7.egg/authority/admin.py" in formfield_for_dbfield
34. return db_field.formfield(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py" in formfield
565. return super(CharField, self).formfield(**defaults)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py" in formfield
444. return form_class(**defaults)
File "/usr/local/lib/python2.7/dist-packages/django/forms/fields.py" in __init__
196. super(CharField, self).__init__(*args, **kwargs)
Exception Type: TypeError at /admin/contacts/company/
Exception Value: __init__() got an unexpected keyword argument 'request'