|
Faq
Faq
Phase-Support FormAlchemy Frequently Asked Questions0.3No FAQs yet. 0.2Why are my fields filled with '<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0xaa1356c>' or 'Property(col, <class 'project.model.mymodel.Class'>)' rather than the actual value? Because you are probably passing an uninstantiated class. Make sure you instantiate your !SQLAlchemy class before passing it to FormAlchemy. |
► Sign in to add a comment
When instantiating objects -
Remember if your using autoflush=True in your SQLAlchemy session to remove the new object from your session with model.session.expunge(myobject) or you'll most likely get an error (if your table/object/entity columns which are defined as non null etc) or a new entry in your database if not - which you probably don't want.