Paul's Programming Notes
PostsRSSGithub

SQLAlchemy - JSON not changing on commit

10 Apr 2016

If your changes to a JSON, JSONB, or HSTORE field aren’t saving after you commit, then you need to wrap your field in the MutableDict shown here: https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#sqlalchemy.dialects.postgresql.HSTORE

pythonsqlalchemypostgresql

Related posts

  • SQLAlchemy's "scale" Argument & WTForms 23 Dec 2015
  • SQLAlchemy - AttributeError: type object 'JSONB' has no attribute 'lower' 10 Apr 2016
  • Django-Moderation 21 May 2016
© 2026. All rights reserved.