mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 20:47:10 +00:00
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)
|
self.download_data_openlibrary(isbn)
|
||||||
|
|
||||||
if self.cleaned_data['authors']:
|
if self.cleaned_data['authors']:
|
||||||
authors: list = self.cleaned_data['authors']
|
authors = self.cleaned_data['authors']
|
||||||
def sort(author):
|
def sort(author):
|
||||||
return str(-author.note) + "." + author.name
|
return str(-author.note) + "." + author.name
|
||||||
authors.sort(key=sort)
|
authors.sort(key=sort)
|
||||||
|
Loading…
Reference in New Issue
Block a user