X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3204e4303148302d278036eebcfc8cb105cc97d7..30423c0a921a37cc2213e83309d5abe04399ba15:/src/catalogue/models/book.py diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index 229b3d0b..a846f6e9 100755 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -95,7 +93,7 @@ class Book(models.Model): # ======================= def accessible(self, request): - return self.public or request.user.is_authenticated() + return self.public or request.user.is_authenticated @classmethod @transaction.atomic