acq shouldn't be in context for THANKS

pull/1/head
eric 2014-05-05 10:15:29 -04:00
parent 53ea120aae
commit c85a13b05c
1 changed files with 4 additions and 0 deletions

View File

@ -2699,6 +2699,10 @@ class DownloadView(PurchaseView):
all_acqs=request.user.acqs.filter(work=work).order_by('-created') all_acqs=request.user.acqs.filter(work=work).order_by('-created')
for an_acq in all_acqs: for an_acq in all_acqs:
if not an_acq.expired: if not an_acq.expired:
# skip for THANKS
if an_acq.license == THANKED:
acq = None
break
# prepare this acq for download # prepare this acq for download
if not an_acq.watermarked or an_acq.watermarked.expired: if not an_acq.watermarked or an_acq.watermarked.expired:
if not an_acq.on_reserve: if not an_acq.on_reserve: