-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the template, I had actually hoped to use the {% bootstrap_pagination %} template tags provided by the django-bootstrap3 app that we're using, but the documentation was uninformative on how to use it, and glancing at the source, it kind of seems like it assumes that pages are given in the query string (am I misunderstanding something?!), so I guess we'll just have to do it ourselves. What we have in this commit isn't quite right (for example, there's a link to page zero, which 500s on an EmptyPage "That page number is less than 1" exception), but it's an okayish start. We'll also want to abstract this into a function (as with `scored_context`). [#21]
- Loading branch information
1 parent
f8609dd
commit c04a226
Showing
4 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,5 @@ | |
}, | ||
} | ||
} | ||
|
||
POSTS_PER_PAGE = 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters