Last active
September 12, 2016 17:19
-
-
Save katie7r/e5c84f82cec38b42debf9bfa50abd1d3 to your computer and use it in GitHub Desktop.
Flask-Bitmapist - ORM mixin example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_sqlalchemy import SQLAlchemy | |
from flask_bitmapist import Bitmapistable | |
db = SQLAlchemy(app) # with `app` as the initialized Flask app | |
class User(db.Model, Bitmapistable): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment