Fix local var error
This commit is contained in:
parent
0e1a3992eb
commit
21905fd1db
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ def get_comments(request, limit=10):
|
|||
revisions=Count("versions", distinct=True),
|
||||
)[offset : offset + limit]
|
||||
)
|
||||
profile = None
|
||||
if request.user.is_authenticated:
|
||||
profile = request.profile
|
||||
queryset = queryset.annotate(
|
||||
|
|
Loading…
Reference in a new issue