justquick/django-activity-stream — Issue #41: KeyError in fetch_generic_relations with existing pks
Author: neeleshs
Created: 2011-10-31 06:59:51+00:00
State: open

Traceback (most recent call last):
File "", line 1, in
File "/home/neelesh/projects/epsilon/local/lib/python2.7/site-packages/actstream/decorators.py", line 21, in wrapped
return func(manager, *args, **kwargs)[offset:limit].fetch_generic_relations()
File "/home/neelesh/projects/epsilon/local/lib/python2.7/site-packages/actstream/gfk.py", line 60, in fetch_generic_relations
(gfk_name, item_id) = items_[smart_unicode(o.pk)]
KeyError: u'1'

It looks like items_ is keyed with numbers and looked up with string keys.