예제 #1
0
 def get(self, request, *args, **kwargs):
     pdf = print_many_areas(self.get_object().area_set.all())
     return HttpResponse(pdf, 'application/pdf')
예제 #2
0
 def get(self, request, *args, **kwargs):
     pdf = print_many_areas(self.get_object().area_set.all())
     return HttpResponse(pdf, 'application/pdf')
예제 #3
0
 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')
예제 #4
0
 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')