mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 21:27:11 +00:00
Fix data dict for isbn
This commit is contained in:
parent
79cd008260
commit
77379e9059
@ -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']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user