fix: dev: wtforms warning
This commit is contained in:
parent
9af173193d
commit
de74fe61f4
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user