mongoengine - MongoDB Datetimefield Null Error -


i trying save null value in datetimefield object in mongodb. have date want set after condition has been fulfilled, site has ability save object multiple time database before variable set other null or empty string value. tried using db.datetimefield(null=true) in model file per mongo's documentation save null value, still error when trying save database.

according issue on github, there inconsistent behavior setting null values datetimefields. know if has been fixed? have work around (adding attribute object, assigning value right before saving, therefore bypassing need save null value, bit hacky, , use mongodb's built in functionality if possible).

thanks in advance!


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -