X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..f2426ff3997edbd2f6fdd0d6d01c2f6ab826b7db:/src/social/views.py?ds=inline

diff --git a/src/social/views.py b/src/social/views.py
index 49c9b708a..15f01bf45 100644
--- a/src/social/views.py
+++ b/src/social/views.py
@@ -38,8 +38,9 @@ def like_book(request, slug):
 
 @login_required
 def my_shelf(request):
-    books = Book.tagged.with_any(request.user.tag_set.all())
-    return render(request, 'social/my_shelf.html', locals())
+    return render(request, 'social/my_shelf.html', {
+        'books': Book.tagged.with_any(request.user.tag_set.all())
+    })
 
 
 class ObjectSetsFormView(AjaxableFormView):