brookie/admin.py
def pdf_invoice(self):
    """ Show link to invoice that has been sent """
    filename = br_settings.BROOKIE_SAVE_PATH + '%s.pdf' % self.invoice_id
    if os.path.exists(filename):
        return '<a href="%(url)s">%(invoice_id)s</a>' % {'url': reverse('view-invoice', kwargs={'pk': self.pk }),
                                                         'invoice_id': self.invoice_id }
    else: return ''
 Show link to invoice that has been sent 
Show link to invoice that has been sent
Show link to invoice that has been sent
def pdf_invoice(self):
    filename = br_settings.BROOKIE_SAVE_PATH + '%s.pdf' % self.invoice_id
    if os.path.exists(filename):
        return '<a href="%(url)s">%(invoice_id)s</a>' % {'url': reverse('view-invoice', kwargs={'pk': self.pk }),
                                                         'invoice_id': self.invoice_id }
    else: return ''
def pdf_invoice ( self ) : filename = br_settings . BROOKIE_SAVE_PATH + '%s.pdf' % self . invoice_id if os . path . exists ( filename ) : return '<a href="%(url)s">%(invoice_id)s</a>' % { 'url' : reverse ( 'view-invoice' , kwargs = { 'pk' : self . pk } ) , 'invoice_id' : self . invoice_id } else : return ''
Show link to invoice that has been sent
Show link to invoice that has been sent
""" Show link to invoice that has been sent """
self