Open ndarville opened 12 years ago
One anchor problem in post templates:
<a ...>#{{ post.number }}</a>
Because post views don’t have a post iterable.
And one page number problem:
?page={{ page.number }}
Because post views don’t have an pagination iterable.
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.
https://docs.djangoproject.com/en/1.4/topics/pagination/