SyntaxFix
Write A Post
Hire A Developer
Questions
You can get the different values with:
set(Article.objects.values_list('comment_id', flat=True))