coleifer / flask-peewee

flask integration for peewee, including admin, authentication, rest api and more
http://flask-peewee.readthedocs.org/
MIT License
777 stars 179 forks source link

commit_on_success missing? #157

Closed arski closed 10 years ago

arski commented 10 years ago

Hi there,

I'm just wondering if it's possible in any way to use peewee's commit_on_success decorator through flask_peewee's Database wrapper at all? I'm getting AttributeError: 'Database' object has no attribute 'commit_on_success' at the moment.

coleifer commented 10 years ago

Just use @database.database.commit_on_success, since the Flask-Peewee Database wraps the peewee database object.

arski commented 10 years ago

great, thanks a lot for the tip!