def get_fans(obj):
 obj_type = apps.get_model('contenttypes', 'ContentType').objects.get_for_model(obj)
 return get_user_model().objects.filter(likes__content_type=obj_type, likes__object_id=obj.id)

def get_fans ( obj ) : obj_type = apps . get_model ( 'contenttypes' , 'ContentType' ) . objects . get_for_model ( obj ) return get_user_model ( ) . objects . filter ( likes__content_type = obj_type , likes__object_id = obj . id )
get the fans of an object .