X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..eaf0711613bea8181528d8911b30ef7976b7bb42:/src/catalogue/models/source.py diff --git a/src/catalogue/models/source.py b/src/catalogue/models/source.py index f36850ddd..c678cad51 100644 --- a/src/catalogue/models/source.py +++ b/src/catalogue/models/source.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -40,5 +39,5 @@ class Source(models.Model): for book in Book.objects.all(): source = book.extra_info.get('source_url', '') if self.netloc in source or (old_netloc != self.netloc and old_netloc in source): - book.flush_includes() + book.clear_cache() return ret