fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert some more ssi to template fragment cache
[wolnelektury.git]
/
src
/
social
/
views.py
diff --git
a/src/social/views.py
b/src/social/views.py
index
49c9b70
..
15f01bf
100644
(file)
--- 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):
@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):
class ObjectSetsFormView(AjaxableFormView):