change work title when edition is selected

pull/1/head
eric 2015-01-29 14:19:02 -05:00
parent 32ec6b0a03
commit bff7866b67
1 changed files with 1 additions and 0 deletions

View File

@ -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: