def create_roles(): for role in ('admin', 'editor', 'author'): user_datastore.create_role(name=role, description=role) user_datastore.commit()
def create_roles(): for role in ('admin', 'developer', 'teacher', 'student'): user_datastore.create_role(name=role, description=role) db.session.commit()