mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-12-13 23:25:16 +01:00
Better roman import
This commit is contained in:
@@ -135,6 +135,8 @@ class MediaAdminForm(ModelForm):
|
||||
self.cleaned_data['number_of_pages'] = 0
|
||||
|
||||
if 'publishedDate' in info:
|
||||
if "-" not in info["publishedDate"]:
|
||||
info["publishedDate"] += "-01-01"
|
||||
self.cleaned_data['publish_date'] = info['publishedDate']
|
||||
|
||||
if 'authors' not in self.cleaned_data \
|
||||
|
||||
Reference in New Issue
Block a user