Пример #1
0
 def calculate_back_url(self):
     the_actual_pdf = self.pdf_set.all().reverse()[0]
     return pdf_to_thumbnail(the_actual_pdf.pdf.path, 120)
Пример #2
0
 def calculate_thumbnail_url(self):
     return pdf_to_thumbnail(self.pdf.path, 250)
Пример #3
0
 def calculate_thumbnail_url(self):
     the_actual_pdf = self.pdf_set.all()[0]
     return pdf_to_thumbnail(the_actual_pdf.pdf.path, 160)
Пример #4
0
 def calculate_mini_url(self):
     return pdf_to_thumbnail(self.pdf.path, 75)
Пример #5
0
 def calculate_back_url(self):
     the_actual_pdf = self.pdf_set.all().reverse()[0]
     return pdf_to_thumbnail(the_actual_pdf.pdf.path, 120)
Пример #6
0
 def calculate_sidebar_url(self):
     the_actual_pdf = self.pdf_set.all()[0]
     return pdf_to_thumbnail(the_actual_pdf.pdf.path, 600)
Пример #7
0
 def calculate_thumbnail_url(self):
     return pdf_to_thumbnail(self.pdf.path, 250)
Пример #8
0
 def calculate_mini_url(self):
     return pdf_to_thumbnail(self.pdf.path, 680)