mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 19:29:58 +00:00
Fixed editing service
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from flask_wtf import FlaskForm # type: ignore
|
||||
from wtforms import StringField, SubmitField, URLField
|
||||
from wtforms.validators import DataRequired
|
||||
from flask_wtf.file import FileField, FileAllowed, FileRequired # type: ignore
|
||||
from flask_wtf.file import FileField, FileAllowed # type: ignore
|
||||
|
||||
|
||||
class ServiceForm(FlaskForm):
|
||||
@@ -10,7 +10,6 @@ class ServiceForm(FlaskForm):
|
||||
image = FileField(
|
||||
"Icon:",
|
||||
validators=[
|
||||
FileRequired(),
|
||||
FileAllowed(["jpg", "jpeg", "png"], "Unsupported file format"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user