1
0
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:
Yohann D'ANELLO
2020-10-02 17:12:02 +02:00
parent 3edc3ffa02
commit 8c8692b8d2
2 changed files with 7 additions and 3 deletions

View File

@@ -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 \