ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

#links for posts break with pagination after page 1 #75

Open ndarville opened 12 years ago

ndarville commented 12 years ago

https://docs.djangoproject.com/en/1.4/topics/pagination/

ndarville commented 11 years ago

One anchor problem in post templates:

  1. The anchor number display
    • <a ...>#{{ post.number }}</a>

Because post views don’t have a post iterable.

And one page number problem:

  1. The page number in the link
    • ?page={{ page.number }}

Because post views don’t have an pagination iterable.

ndarville commented 11 years ago

Consider using a model value for this. How to calculate it, though, when people delete their posts? This would bring the post_count down, which means that it would not be the way to go about assigning the value to a post.