commit
67fc56733f
|
@ -346,6 +346,7 @@ def work(request, work_id, action='display'):
|
|||
selected_id=request.POST['select_edition']
|
||||
try:
|
||||
work.selected_edition= work.editions.get(id=selected_id)
|
||||
work.title=work.selected_edition.title
|
||||
work.save()
|
||||
alert = alert + 'edition selected'
|
||||
except models.Edition.DoesNotExist:
|
||||
|
@ -2925,7 +2926,7 @@ def feature(request, work_id):
|
|||
if work.first_ebook():
|
||||
work.featured = now()
|
||||
work.save()
|
||||
return home(request, landing=True)
|
||||
return HttpResponseRedirect(reverse('landing', args=[] ))
|
||||
else:
|
||||
return HttpResponse('can\'t feature an work without an ebook')
|
||||
|
||||
|
|
Loading…
Reference in New Issue