We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca6d87 commit 0f3609cCopy full SHA for 0f3609c
fastapi_users_db_beanie/__init__.py
@@ -22,7 +22,7 @@ class BeanieBaseUser(Generic[ID], Document):
22
is_superuser: bool = False
23
is_verified: bool = False
24
25
- class Collection:
+ class Settings:
26
email_collation = Collation("en", strength=2)
27
indexes = [
28
IndexModel("email", unique=True),
@@ -69,7 +69,7 @@ async def get_by_email(self, email: str) -> Optional[UP_BEANIE]:
69
"""Get a single user by email."""
70
return await self.user_model.find_one(
71
self.user_model.email == email,
72
- collation=self.user_model.Collection.email_collation,
+ collation=self.user_model.Settings.email_collation,
73
)
74
75
async def get_by_oauth_account(
0 commit comments