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
The text was updated successfully, but these errors were encountered:
Barceloch
changed the title
TypeErro extending odmantic model ...
how set custom __collection__ from odmantic model? ...
Nov 27, 2020
Barceloch
changed the title
how set custom __collection__ from odmantic model? ...
how set custom __collection__ name from odmantic model? ...
Nov 27, 2020
Actually model inheritance is not supported yet.
It should work like this though:
from odmantic import Model
class ContactModel(baseModel):
class Config:
collection = "__Contacts" # <---------------*it this will be a dynamic custom name for all my models*
fullname: str
phone: str
email: str
waiting model inherance... :)
The text was updated successfully, but these errors were encountered: