Skip to content

Instantly share code, notes, and snippets.

@tell-k
Created September 14, 2012 15:30
Show Gist options
  • Save tell-k/3722661 to your computer and use it in GitHub Desktop.
Save tell-k/3722661 to your computer and use it in GitHub Desktop.
db_session.add(Entry(id=1, text="entrytext1"))
entry1 = Entry.query.filter_by(id=1).first()
# プロパティを変更
entry1.text = "hogehoge"
db_session.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment