Skip to content

Commit

Permalink
added sticky to forum threads
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Dec 17, 2011
1 parent 81fc5cc commit 2c4395b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agora/models.py
Expand Up @@ -278,7 +278,7 @@ class ForumThread(ForumPost):
on_delete = models.SET_NULL on_delete = models.SET_NULL
) )


# @@@ sticky threads sticky = models.IntegerField(default=0)
# @@@ closed threads # @@@ closed threads


view_count = models.IntegerField(default=0, editable=False) view_count = models.IntegerField(default=0, editable=False)
Expand Down
2 changes: 1 addition & 1 deletion agora/views.py
Expand Up @@ -63,7 +63,7 @@ def forum(request, forum_id):


forum = get_object_or_404(Forum, id=forum_id) forum = get_object_or_404(Forum, id=forum_id)


threads = forum.threads.order_by("-last_modified") threads = forum.threads.order_by("-sticky", "-last_modified")


return render_to_response("agora/forum.html", { return render_to_response("agora/forum.html", {
"forum": forum, "forum": forum,
Expand Down

0 comments on commit 2c4395b

Please sign in to comment.