Merge branch 'LQDJudge:master' into master

This commit is contained in:
Dung T.Bui 2023-05-16 12:47:53 +07:00 committed by GitHub
commit 49a186f72f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 132 additions and 90 deletions

View file

@ -27,6 +27,7 @@ class FeedView(InfinitePaginationMixin, ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["has_next_page"] = context["page_obj"].has_next()
try:
context["feed_content_url"] = reverse(self.url_name)
except Exception as e: