mrjoes/flask-admin — pull request #100 by techniq (2012-10-23 18:51:45+00:00)
Title: Remove explicit session flush 

Remove explicit session flush (and thus ordering of `on_model_change` and session flushing). Session will automatically be flushed when committed (next line after on_model_change)

http://docs.sqlalchemy.org/en/rel_0_7/orm/session.html#committing

Also allow making model changing in on_model_change before persisiting when using peewee