mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-10-31 07:39:51 +01:00 
			
		
		
		
	Fix data dict for isbn
This commit is contained in:
		| @@ -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'] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user