# hack, because piston is stupid
@classmethod
def liked(cls, book):
- return book.liked
+ return getattr(book, 'liked', None)
def read(self, request, **kwargs):
books = AnonymousBooksHandler().read(request, **kwargs)
# hack, because piston is stupid
@classmethod
def liked(cls, book):
- return book.liked
+ return getattr(book, 'liked', None)
def read(self, request):
qsp = AnonFilterBooksHandler().read(request)
# hack, because piston is stupid
@classmethod
def liked(cls, book):
- return book.liked
+ return getattr(book, 'liked', None)
def read(self, request, state):
if not request.user.is_authenticated():