Incorrect Default Value for created_at in Documentation #63
prashikdewtale10
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I found an issue in the documentation regarding the created_at date field in the example code. The current code snippet uses:
To ensure that each instance receives a unique timestamp, I recommend updating the code to use a callable for the default parameter:
This adjustment ensures that datetime.date.today() is called each time a new instance is created, providing the correct and expected behavior.
documentation link : https://mongoz.tarsild.io/fields/?h=date#date
Beta Was this translation helpful? Give feedback.
All reactions