Slide 24
Slide 24 text
Flask Admin + SQLAlchemy
class Organizations(db.Model):
id = db.Column(db.Integer, primary_key= True)
name = db.Column(db.String( 50), nullable=False,
index=True)
apikey = db.Column(db.String( 50), nullable=False,
unique=True)
verified = db.Column(db.Boolean)
private = db.Column(db.Boolean)
memo = db.Column(db.String( 200))
admin.add_view(ModelView(Organizations, db.session))