mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-12-13 23:25:16 +01:00
Fix synthax
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user