django check if object exists in queryset code example
Example: check this id exist in database django
Votes.objects.filter(user_id=user_id, post_id=post_id).exists()
Votes.objects.filter(user_id=user_id, post_id=post_id).exists()