Closes #2194 Normalize stored ISNI

This commit is contained in:
Hunter Chambers 2022-10-09 19:36:24 -04:00
parent 003c5c9c82
commit 02c7397eaf

View file

@ -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