Merge branch 'master' of github.com:Gluejar/regluit
commit
a4957a5bf6
|
@ -81,7 +81,10 @@ def work(request, work_id, action='display'):
|
|||
work = get_object_or_404(models.Work, id=work_id)
|
||||
editions = work.editions.all().order_by('-publication_date')
|
||||
campaign = work.last_campaign()
|
||||
pledged = campaign.transactions().filter(user=request.user, status="ACTIVE")
|
||||
try:
|
||||
pledged = campaign.transactions().filter(user=request.user, status="ACTIVE")
|
||||
except:
|
||||
pledged = None
|
||||
try:
|
||||
pubdate = work.editions.all()[0].publication_date[:4]
|
||||
except IndexError:
|
||||
|
|
Loading…
Reference in New Issue