1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-07 09:44:01 +02:00

Fix synthax

This commit is contained in:
Yohann D'ANELLO
2020-05-21 17:07:50 +02:00
parent 82efeba272
commit 001f40a033
5 changed files with 35 additions and 12 deletions

View File

@ -70,7 +70,8 @@ class MediaAdminForm(ModelForm):
if 'publishedDate' in info:
self.cleaned_data['publish_date'] = info['publishedDate']
if 'authors' not in self.cleaned_data or not self.cleaned_data['authors']:
if 'authors' not in self.cleaned_data \
or not self.cleaned_data['authors']:
self.cleaned_data['authors'] = list()
if 'authors' in info:
@ -143,7 +144,8 @@ class MediaAdminForm(ModelForm):
.format(split[2], months.index(split[0])
+ 1, int(split[1]), )
if 'authors' not in self.cleaned_data or not self.cleaned_data['authors']:
if 'authors' not in self.cleaned_data \
or not self.cleaned_data['authors']:
self.cleaned_data['authors'] = list()
if 'authors' in data: