def format_item(self, action, item_type='actor'):
        obj = getattr(action, item_type)
        return {
            'id': self.get_uri(action, obj),
            'url': self.get_url(action, obj),
            'objectType': ContentType.objects.get_for_model(obj).name,
            'displayName': text_type(obj)
        }
Cast input values to Key() class using encoded string or tuple list.
dataset/ETHPy150Open justquick/django-activity-stream/actstream/feeds.py/AbstractActivityStream.format_item--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/gql/__init__.py/GQL.__CastKey