My favorites
▼
|
Sign in
django-forum
Simple Django Forum Component
Project Home
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
44
attachment: views.diff
(453 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: views.py
===================================================================
--- views.py (revision 28)
+++ views.py (working copy)
@@ -46,7 +46,9 @@
"""
t = get_object_or_404(Thread, pk=thread)
p = t.post_set.all().order_by('time')
- s = t.subscription_set.filter(author=request.user)
+ s = None
+ if request.user.is_authenticated():
+ s = t.subscription_set.filter(author=request.user)
t.views += 1
t.save()
Powered by
Google Project Hosting