mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-11 18:56:34 +00:00
Closes #2194 Normalize stored ISNI
This commit is contained in:
parent
003c5c9c82
commit
02c7397eaf
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ class Author(BookDataModel):
|
|||
for book in self.book_set.values_list("id", flat=True)
|
||||
]
|
||||
cache.delete_many(cache_keys)
|
||||
|
||||
# normalize isni format
|
||||
if self.isni:
|
||||
self.isni = re.sub(r"\s", "", self.isni)
|
||||
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue