django check if value exists in database id find 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()