import datetime u = models.User.query.get(1) p = models.Post(body='my first post!', timestamp=datetime.datetime.utcnow(), author=u)
Because the Post class you defined does not have the timestamp attribute: https://github.com/zzzeek/sql...
Send the Model but I can’t see if it’s the wrong type
Because the Post class you defined does not have the timestamp attribute: https://github.com/zzzeek/sql...
Send the Model but I can’t see if it’s the wrong type