fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added counts to book_sets.html and user_shelves.html templates.
[wolnelektury.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
7168fb0
..
9ae5051
100644
(file)
--- a/
apps/catalogue/views.py
+++ b/
apps/catalogue/views.py
@@
-176,7
+176,6
@@
def user_shelves(request):
return render_to_response('catalogue/user_shelves.html', locals(),
context_instance=RequestContext(request))
return render_to_response('catalogue/user_shelves.html', locals(),
context_instance=RequestContext(request))
-@login_required
@cache.never_cache
def book_sets(request, slug):
book = get_object_or_404(models.Book, slug=slug)
@cache.never_cache
def book_sets(request, slug):
book = get_object_or_404(models.Book, slug=slug)
@@
-272,8
+271,7
@@
def new_set(request):
else:
return HttpResponseRedirect('/')
else:
return HttpResponseRedirect('/')
- return render_to_response('catalogue/book_sets.html', locals(),
- context_instance=RequestContext(request))
+ return HttpResponseRedirect('/')
@login_required
@login_required