fix: dev: wtforms warning

This commit is contained in:
rachmadaniHaryono 2019-05-07 19:59:55 +08:00
parent 9af173193d
commit de74fe61f4
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class HomeForm(SearchBookmarksForm):
class BookmarkForm(FlaskForm):
url = wtforms.StringField(
validators=[wtforms.validators.required(), wtforms.validators.URL(require_tld=False)])
validators=[wtforms.validators.DataRequired(), wtforms.validators.URL(require_tld=False)])
title = wtforms.StringField()
tags = wtforms.StringField()
description = wtforms.TextAreaField()

View File

@ -381,7 +381,7 @@ class TagModelView(BaseModelView):
def scaffold_form(self):
class CustomForm(FlaskForm): # pylint: disable=too-few-public-methods
name = wtforms.StringField(validators=[wtforms.validators.required()])
name = wtforms.StringField(validators=[wtforms.validators.DataRequired()])
return CustomForm