Traceback most recent call last File usr lib python2 site-packages dja

 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
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 67, in __call__
return self.view_func(request, *args, **kwargs)
File "/home/sevenov/www/itquest.ru/www/apps/lib/decorators.py", line 40, in wrapper
response = func(request, *args, **kwargs)
File "/home/sevenov/dev/teemp/itquest/apps/questions/views.py", line 132, in comment_add
File "/usr/lib/python2.5/site-packages/django/utils/functional.py", line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/usr/lib/python2.5/site-packages/django/db/models/base.py", line 515, in get_absolute_url
return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/home/sevenov/www/itquest.ru/www/apps/questions/models.py", line 64, in get_absolute_url
real = cast_message(self)
File "/home/sevenov/www/itquest.ru/www/apps/questions/models.py", line 37, in cast_message
return types_map[cursor.fetchone()[0]].get(pk=msg_id)
AttributeError: type object 'Answer' has no attribute 'get'