diff --git a/media/forms.py b/media/forms.py index 40d8efe..e137b1a 100644 --- a/media/forms.py +++ b/media/forms.py @@ -137,7 +137,7 @@ class MediaAdminForm(ModelForm): if 'publishedDate' in info: if "-" not in info["publishedDate"]: info["publishedDate"] += "-01-01" - self.cleaned_data['publish_date'] = info['publishedDate'] + self.cleaned_data['publish_date'] = info['publishedDate'][:10] if 'authors' not in self.cleaned_data \ or not self.cleaned_data['authors']: