dump update
This commit is contained in:
parent
7680ba4bb0
commit
c3b7d465b1
784 changed files with 35 additions and 18 deletions
4
judge/comments.py
Normal file → Executable file
4
judge/comments.py
Normal file → Executable file
|
@ -167,8 +167,8 @@ class CommentedDetailView(TemplateResponseMixin, SingleObjectMixin, View):
|
|||
queryset.filter(parent=None, hidden=False)[:10]
|
||||
.select_related("author__user")
|
||||
.defer("author__about")
|
||||
.annotate(revisions=Count("versions"))
|
||||
.annotate(count_replies=Count("replies"))
|
||||
# .annotate(count_replies=Count("replies"))
|
||||
# .annotate(revisions=Count("versions"))
|
||||
)
|
||||
context["has_comments"] = queryset.exists()
|
||||
context["comment_lock"] = self.is_comment_locked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue