1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-25 06:22:23 +00:00

Fix data dict for isbn

This commit is contained in:
Alexandre Iooss 2019-08-11 11:19:24 +02:00
parent 79cd008260
commit 77379e9059
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -34,13 +34,13 @@ class MediaAdminForm(ModelForm):
# Fill the data
# TODO implement authors, side_identifier
if data['title']:
if 'title' in data:
self.cleaned_data['title'] = data['title']
if data['subtitle']:
if 'subtitle' in data:
self.cleaned_data['subtitle'] = data['subtitle']
if data['url']:
if 'url' in data:
self.cleaned_data['external_url'] = data['url']
if data['number_of_pages']:
if 'number_of_pages' in data:
self.cleaned_data['number_of_pages'] = \
data['number_of_pages']