From: Jan Szejko Date: Thu, 5 Jul 2018 13:36:30 +0000 (+0200) Subject: hide "(none)" X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ef93835e5356373ea5190e070cce80d42df616b0?ds=sidebyside;hp=4167e7083d75589e9dbbaa05bfcb43d27b60b42f hide "(none)" --- diff --git a/src/social/templatetags/social_tags.py b/src/social/templatetags/social_tags.py index 4cc621525..ce61985d2 100755 --- a/src/social/templatetags/social_tags.py +++ b/src/social/templatetags/social_tags.py @@ -34,7 +34,7 @@ def render_cite(cite): @ssi_variable(register, patch_response=[ssi_vary_on_cookie]) def book_shelf_tags(request, book_id): if not request.user.is_authenticated(): - return None + return '' book = Book.objects.get(pk=book_id) lks = likes(request.user, book, request)