working on invoice upload stuff

This commit is contained in:
Thomas Steen Rasmussen 2016-05-30 20:15:35 +02:00
parent 8981f0a387
commit a91ed3bc5c
3 changed files with 2 additions and 3 deletions

View file

@ -104,6 +104,4 @@ TICKET_CATEGORY_ID = env('TICKET_CATEGORY_ID')
COINIFY_API_KEY = env('COINIFY_API_KEY') COINIFY_API_KEY = env('COINIFY_API_KEY')
COINIFY_API_SECRET = env('COINIFY_API_SECRET') COINIFY_API_SECRET = env('COINIFY_API_SECRET')
PDF_ARCHIVE_PATH='/usr/local/www/pdf_archive/'
LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME')) LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME'))

View file

@ -14,3 +14,4 @@ TICKET_CATEGORY_ID=''
COINIFY_API_KEY='' COINIFY_API_KEY=''
COINIFY_API_SECRET='' COINIFY_API_SECRET=''
PDF_LETTERHEAD_FILENAME='' PDF_LETTERHEAD_FILENAME=''
MEDIA_ROOT=''

View file

@ -255,7 +255,7 @@ class EpayPayment(CreatedUpdatedModel, UUIDModel):
class Invoice(CreatedUpdatedModel): class Invoice(CreatedUpdatedModel):
order = models.OneToOneField('shop.Order') order = models.OneToOneField('shop.Order')
pdf = models.FileField(null=True, blank=True) pdf = models.FileField(null=True, blank=True, upload_to='invoices/')
sent_to_customer = models.BooleanField(default=False) sent_to_customer = models.BooleanField(default=False)
def __str__(self): def __str__(self):