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
I'm encountering an issue when trying to create a Factory using OdmanticModelFactory. If the Odmantic model contains datetime attributes, the following error is raised:
AttributeError: type object '_datetime' has no attribute 'validate'
The error originates from line 48 in the file odmantic_odm_factory.py.
Could you please provide guidance on resolving this issue? Thank you!
FlorianEisenbarth
changed the title
Bug: <title>
Bug: Error with OdmanticModelFactory: AttributeError on _datetime.validate for Models with datetime Attributes
Dec 6, 2024
Description
Hello,
I'm encountering an issue when trying to create a Factory using OdmanticModelFactory. If the Odmantic model contains datetime attributes, the following error is raised:
AttributeError: type object '_datetime' has no attribute 'validate'
The error originates from line 48 in the file odmantic_odm_factory.py.
Could you please provide guidance on resolving this issue? Thank you!
URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
"In the format of:
![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)
"Logs
Release Version
2.18.1
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: