def vclan_do_print_badge(request, pk):

    vclan = get_object_or_404(Vclans, pk=pk)

    badges = [member.get_new_badge() for member in vclan.humen_set.all() ]

    return make_pdf_response({ 'qs' :badges }, 'badge_qs.html')
    def stampa_servizi(self, request, queryset):

        servizi = []
        for hu in queryset:
            servizi.append(hu)
        return make_pdf_response({ 'qs' : servizi }, 'servizi.html')
def humen_do_print_badge(request, pk):

    hu = get_object_or_404(Humen, pk=pk)

    return make_pdf_response({ 'qs' :[hu.get_new_badge()] }, 'badge_qs_single.html')
    def stampa_badge(self, request, queryset):

        badge_qs = []
        for hu in queryset:
            badge_qs.append(hu.get_new_badge())
        return make_pdf_response({ 'qs' : badge_qs }, 'badge_qs.html')