fix: use specific Fedora version, handle TextField deprecation
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from flask import Flask, render_template, flash, request
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import Form, BooleanField, SubmitField, TextField
|
||||
from wtforms import Form, BooleanField, SubmitField, StringField
|
||||
from wtforms.validators import DataRequired
|
||||
import os
|
||||
|
||||
@@ -12,7 +12,7 @@ app.config.from_object(__name__)
|
||||
app.config['SECRET_KEY'] = os.urandom(40)
|
||||
|
||||
class QRForm(FlaskForm):
|
||||
user_data = TextField("Dane:", validators=[DataRequired()])
|
||||
user_data = StringField("Dane:", validators=[DataRequired()])
|
||||
trim_spaces = BooleanField("Usuń spacje", default=True)
|
||||
submit = SubmitField("Generuj")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user