def _generate_object_kwarg_dict(self, content_object, **kwargs):
        kwargs['content_type'] = ContentType.objects.get_for_model(content_object)
        kwargs['object_id'] = getattr(content_object, 'pk', getattr(content_object, 'id'))
        return kwargs
Generates the most comment keyword arguments for a given ``content_object``.
dataset/ETHPy150Open caseywstark/colab/colab/apps/threadedcomments/models.py/ThreadedCommentManager._generate_object_kwarg_dict