|
|
@ -3,6 +3,7 @@ from wtforms import StringField, SubmitField, TextAreaField, BooleanField, \ |
|
|
|
SelectField |
|
|
|
from wtforms.validators import DataRequired, Length, Email, Regexp |
|
|
|
from wtforms import ValidationError |
|
|
|
from flask_pagedown.fields import PageDownField |
|
|
|
from ..models import Role, User |
|
|
|
|
|
|
|
|
|
|
@ -51,5 +52,5 @@ class EditProfileAdminForm(FlaskForm): |
|
|
|
|
|
|
|
|
|
|
|
class PostForm(FlaskForm): |
|
|
|
body = TextAreaField("What's on your mind?", validators=[DataRequired()]) |
|
|
|
body = PageDownField("What's on your mind?", validators=[DataRequired()]) |
|
|
|
submit = SubmitField('Submit') |