Environment Request Method POST Request URL http 127 8000 reference au

 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
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/reference/author/add/
Django Version: 1.0.2 final
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'lib',
'tasks',
'reference',
'files',
'accounts',
'mptt']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'accounts.middleware.AuthKeyMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
86. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in __call__
67. return self.view_func(request, *args, **kwargs)
File "/home/marat/dev/erp/apps/lib/decorators.py" in wrapper
11. output = func(request, *args, **kw)
File "/home/marat/dev/erp/apps/reference/views.py" in add
68. return HttpResponseRedirect(reverse('ref_edit', **kwargs))
Exception Type: TypeError at /reference/author/add/
Exception Value: reverse() got an unexpected keyword argument 'ref'