I already have a user with a username Kevin in my database. I want prevent new users to pick Kevin, kevin, KeViN, etc. as their username when creating an account. How do I modify my query to check if such user exists ignoring case-sensitivity?
def validate_username(self, username):
if db.users.find_one({"username":username}):
raise ValidationError("username is already taken")