def get(self, request, *args, **kwargs): pdf = print_many_areas(self.get_object().area_set.all()) return HttpResponse(pdf, 'application/pdf')
def get(self, request, *args, **kwargs): # pdf = print_one_area(self.get_object()) pdf = print_many_areas([self.get_object()]) return HttpResponse(pdf, 'application/pdf')
def get(self, request, *args, **kwargs): # pdf = print_one_area(self.get_object()) pdf = print_many_areas([ self.get_object() ]) return HttpResponse(pdf, 'application/pdf')