change work title when edition is selected
parent
32ec6b0a03
commit
bff7866b67
|
@ -346,6 +346,7 @@ def work(request, work_id, action='display'):
|
||||||
selected_id=request.POST['select_edition']
|
selected_id=request.POST['select_edition']
|
||||||
try:
|
try:
|
||||||
work.selected_edition= work.editions.get(id=selected_id)
|
work.selected_edition= work.editions.get(id=selected_id)
|
||||||
|
work.title=work.selected_edition.title
|
||||||
work.save()
|
work.save()
|
||||||
alert = alert + 'edition selected'
|
alert = alert + 'edition selected'
|
||||||
except models.Edition.DoesNotExist:
|
except models.Edition.DoesNotExist:
|
||||||
|
|
Loading…
Reference in New Issue