Closed arski closed 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.
commit_on_success
Database
AttributeError: 'Database' object has no attribute 'commit_on_success'
Just use @database.database.commit_on_success, since the Flask-Peewee Database wraps the peewee database object.
@database.database.commit_on_success
great, thanks a lot for the tip!
Hi there,
I'm just wondering if it's possible in any way to use peewee's
commit_on_success
decorator through flask_peewee'sDatabase
wrapper at all? I'm gettingAttributeError: 'Database' object has no attribute 'commit_on_success'
at the moment.