Python 3.5 support
This commit is contained in:
parent
ea821483d0
commit
70045d4e2d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue