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),
|
revisions=Count("versions", distinct=True),
|
||||||
)[offset : offset + limit]
|
)[offset : offset + limit]
|
||||||
)
|
)
|
||||||
|
profile = None
|
||||||
if request.user.is_authenticated:
|
if request.user.is_authenticated:
|
||||||
profile = request.profile
|
profile = request.profile
|
||||||
queryset = queryset.annotate(
|
queryset = queryset.annotate(
|
||||||
|
|
Loading…
Reference in a new issue