Revert "HiddenField instead of StringField"

This reverts commit 04063db60e.
This commit is contained in:
Cayo Puigdefabregas 2022-04-26 12:56:34 +02:00
parent c3bb5cb863
commit ef65b1084e
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from flask import g
from flask_wtf import FlaskForm
from wtforms import HiddenField, IntegerField, StringField, validators
from wtforms import IntegerField, StringField, validators
from ereuse_devicehub.db import db
from ereuse_devicehub.resources.device.models import Device
@ -48,7 +48,7 @@ class TagUnnamedForm(FlaskForm):
class PrintLabelsForm(FlaskForm):
devices = HiddenField(render_kw={'class': "devicesList"})
devices = StringField(render_kw={'class': "devicesList d-none"})
def validate(self, extra_validators=None):
is_valid = super().validate(extra_validators)