Skip to content

Commit

Permalink
Tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Jun 10, 2024
1 parent 308975a commit 56a8882
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions djpress/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def index(
if not template.template.name:
msg = "Template not found"
raise TemplateDoesNotExist(msg)

posts = Paginator(
Post.post_objects.get_published_posts(),
settings.RECENT_PUBLISHED_POSTS_COUNT,
Expand Down

0 comments on commit 56a8882

Please sign in to comment.