From 70045d4e2d13b9d40040ba0719b149be51267479 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 10 Feb 2020 17:29:10 +0100 Subject: [PATCH] Python 3.5 support --- media/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/forms.py b/media/forms.py index e3a7589..7bd1056 100644 --- a/media/forms.py +++ b/media/forms.py @@ -99,7 +99,7 @@ class MediaAdminForm(ModelForm): self.download_data_openlibrary(isbn) if self.cleaned_data['authors']: - authors: list = self.cleaned_data['authors'] + authors = self.cleaned_data['authors'] def sort(author): return str(-author.note) + "." + author.name authors.sort(key=sort)