def get_voters(obj):
 obj_type = apps.get_model('contenttypes', 'ContentType').objects.get_for_model(obj)
 return get_user_model().objects.filter(votes__content_type=obj_type, votes__object_id=obj.id)

def get_voters ( obj ) : obj_type = apps . get_model ( 'contenttypes' , 'ContentType' ) . objects . get_for_model ( obj ) return get_user_model ( ) . objects . filter ( votes__content_type = obj_type , votes__object_id = obj . id )
get the voters of an object .