X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..6c9c6aa32a1b986128d7e5c2547d22d7a9f8d943:/src/catalogue/models/source.py diff --git a/src/catalogue/models/source.py b/src/catalogue/models/source.py index 9aff4efec..bcf5254bb 100644 --- a/src/catalogue/models/source.py +++ b/src/catalogue/models/source.py @@ -39,7 +39,6 @@ class Source(models.Model): if old_name != self.name or old_netloc != self.netloc: 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): + if self.netloc in source or (old_netloc != self.netloc and old_netloc in source): book.flush_includes() return ret