You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking changes
----------------
* `BeanieBaseUser` and `BeanieBaseAccessToken` are now pure mixins and doesn't inherit `Document` by default. This change was made to avoid Beanie from creating duplicate collections in your database. You now need to inherit from `Document` yourself when declaring your model.
* `BeanieBaseUser` now only supports `PydanticObjectId` as ID type.
**BEFORE**
```py
class User(BeanieBaseUser[PydanticObjectId]):
pass
```
**AFTER**
```py
class User(BeanieBaseUser, Document):
pass
```
**BEFORE**
```py
class AccessToken(BeanieBaseAccessToken[PydanticObjectId]):
pass
```
**AFTER**
```py
class AccessToken(BeanieBaseAccessToken, Document):
pass
```
Bug fixes
---------
* Fix support for Beanie >= 0.18.
0 commit comments