Questions: add min-length to string/text type questions (#6488)

* Questions: add min-length to string/text type questions

* fix test
This commit is contained in:
Richard Schreiber
2026-08-25 09:37:37 +02:00
committed by GitHub
parent 4755e7af0e
commit 6d4aba6e3d
9 changed files with 47 additions and 4 deletions
+1
View File
@@ -251,6 +251,7 @@ class QuestionForm(I18nModelForm):
'valid_date_min',
'valid_date_max',
'valid_file_portrait',
'valid_string_length_min',
'valid_string_length_max',
]
widgets = {
@@ -47,6 +47,7 @@
{% bootstrap_field form.valid_datetime_max layout="control" %}
</div>
<div id="valid-string">
{% bootstrap_field form.valid_string_length_min layout="control" %}
{% bootstrap_field form.valid_string_length_max layout="control" %}
</div>
<div id="valid-file">