mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-11-04 20:02:35 +01:00
Remove (AUT) fields from titles
This commit is contained in:
@@ -99,6 +99,10 @@ class MediaAdminForm(ModelForm):
|
||||
# Try with OpenLibrary
|
||||
self.download_data_openlibrary(isbn)
|
||||
|
||||
if self.cleaned_data['title']:
|
||||
self.cleaned_data['title'] = re.sub('\(AUT\) ',
|
||||
'', self.cleaned_data['title'])
|
||||
|
||||
if self.cleaned_data['authors']:
|
||||
authors = self.cleaned_data['authors']
|
||||
old_authors = authors.copy()
|
||||
|
||||
Reference in New Issue
Block a user