Talk Python To Me cover image

#349: Meet Beanie: A MongoDB ODM + Pydantic

Talk Python To Me

00:00

Mongo Engine - Is the Default a Function?

The default is a function. So how do you say that in this model? If it's nolabl, i can just u piton typin optional. Now without parentheses, melike, i want you to call the now function when you do an insert. How would i model that in beny? Again, you can use pedantic stuff here. They di half a fork, an field, glass, equal field, and insideo that you can use a default ctory barometer. And so almost all my models have kind of created date type of thing. Date time dot.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app