def list_eligible_types(self, obj):
        items = []
        eligible_types = obj.eligible_types.all()
        for content_type in eligible_types[:5]:
            items.append(u'<li>{}.{}</li>'.format(content_type.app_label, content_type.model))

        if eligible_types.count() > 5:
            items.append(u'<br/>and {} more'.format(eligible_types.count() - 5))

        return u'<ul>{}</ul>'.format(u''.join(items))
:type task_id: vulyk.models.task_types.AbstractTaskType
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/admin.py/PositionAdmin.list_eligible_types--crossover with--dataset/ETHPy150Open mrgambal/vulyk/vulyk/cli/db.py/load_tasks