also save the work title

pull/43/head^2
eric 2017-10-30 19:23:11 -04:00
parent 9216f40356
commit b4184b4ddc
1 changed files with 7 additions and 1 deletions

View File

@ -274,7 +274,13 @@ def edit_edition(request, work_id, edition_id, by=None):
work.publication_range = None # will reset on next access
work.language = form.cleaned_data['language']
work.age_level = form.cleaned_data['age_level']
work.save(update_fields=['description', 'publication_range', 'language', 'age_level'])
work.save(update_fields=[
'title',
'description',
'publication_range',
'language',
'age_level'
])
id_type = form.cleaned_data['id_type']
id_val = form.cleaned_data['id_value']