def export_vcard(self, request, queryset, export_name=''): """Export selected contact in VCard""" return vcard_contacts_export_response(queryset)
def exportion_vcard(self, request, mailinglist_id): """Export subscribers in the mailing in VCard""" mailinglist = get_object_or_404(MailingList, pk=mailinglist_id) name = 'contacts_%s' % smart_str(mailinglist.name) return vcard_contacts_export_response(mailinglist.subscribers.all(), name)