📜  sqlite3 与烧瓶 Web 应用程序 CRUD pdf - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.513000             🧑  作者: Mango

代码示例10
# app/admin/forms.py

# existing code remains

class RoleForm(FlaskForm):
    """
    Form for admin to add or edit a role
    """
    name = StringField('Name', validators=[DataRequired()])
    description = StringField('Description', validators=[DataRequired()])
    submit = SubmitField('Submit')