Verified Commit 77379e90 authored by erdnaxe's avatar erdnaxe 🦋

Fix data dict for isbn

parent 79cd0082
Pipeline #1420 passed with stage
in 3 minutes and 29 seconds
......@@ -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'] = \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment