def calculate_back_url(self): the_actual_pdf = self.pdf_set.all().reverse()[0] return pdf_to_thumbnail(the_actual_pdf.pdf.path, 120)
def calculate_thumbnail_url(self): return pdf_to_thumbnail(self.pdf.path, 250)
def calculate_thumbnail_url(self): the_actual_pdf = self.pdf_set.all()[0] return pdf_to_thumbnail(the_actual_pdf.pdf.path, 160)
def calculate_mini_url(self): return pdf_to_thumbnail(self.pdf.path, 75)
def calculate_sidebar_url(self): the_actual_pdf = self.pdf_set.all()[0] return pdf_to_thumbnail(the_actual_pdf.pdf.path, 600)
def calculate_mini_url(self): return pdf_to_thumbnail(self.pdf.path, 680)