hide "(none)"
authorJan Szejko <janek37@gmail.com>
Thu, 5 Jul 2018 13:36:30 +0000 (15:36 +0200)
committerJan Szejko <janek37@gmail.com>
Thu, 5 Jul 2018 13:36:30 +0000 (15:36 +0200)
src/social/templatetags/social_tags.py

index 4cc6215..ce61985 100755 (executable)
@@ -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)