mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-11-04 22:02:35 +01:00
Python 3.5 support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user