Fix local var error

This commit is contained in:
cuom1999 2023-09-29 00:37:28 -05:00
parent 0e1a3992eb
commit 21905fd1db

View file

@ -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(