wagtail-enap-designsystem 1.2.1.132__py3-none-any.whl → 1.2.1.134__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wagtail-enap-designsystem might be problematic. Click here for more details.
- enap_designsystem/blocks/form.py +3 -1
- enap_designsystem/migrations/0411_alter_formulariopage_form_steps.py +1277 -0
- enap_designsystem/settings.py +14 -1
- enap_designsystem/templates/enap_designsystem/includes/form_field.html +93 -5
- {wagtail_enap_designsystem-1.2.1.132.dist-info → wagtail_enap_designsystem-1.2.1.134.dist-info}/METADATA +1 -1
- {wagtail_enap_designsystem-1.2.1.132.dist-info → wagtail_enap_designsystem-1.2.1.134.dist-info}/RECORD +9 -8
- {wagtail_enap_designsystem-1.2.1.132.dist-info → wagtail_enap_designsystem-1.2.1.134.dist-info}/WHEEL +0 -0
- {wagtail_enap_designsystem-1.2.1.132.dist-info → wagtail_enap_designsystem-1.2.1.134.dist-info}/licenses/LICENSE +0 -0
- {wagtail_enap_designsystem-1.2.1.132.dist-info → wagtail_enap_designsystem-1.2.1.134.dist-info}/top_level.txt +0 -0
enap_designsystem/blocks/form.py
CHANGED
|
@@ -1000,6 +1000,8 @@ class FormStepBlock(StructBlock):
|
|
|
1000
1000
|
FORM_FIELD_BLOCKS,
|
|
1001
1001
|
label="Campos desta Etapa",
|
|
1002
1002
|
required=False,
|
|
1003
|
+
min_num=0,
|
|
1004
|
+
max_num=500,
|
|
1003
1005
|
help_text="Adicione os campos que aparecerão nesta etapa"
|
|
1004
1006
|
)
|
|
1005
1007
|
|
|
@@ -1281,7 +1283,7 @@ class FormularioPage(Page):
|
|
|
1281
1283
|
return super().serve(request, *args, **kwargs)
|
|
1282
1284
|
|
|
1283
1285
|
def process_form_submission(self, request):
|
|
1284
|
-
"""Processa os dados do formulário
|
|
1286
|
+
"""Processa os dados do formulário"""
|
|
1285
1287
|
form_data = {}
|
|
1286
1288
|
files_data = {} # ← Separar arquivos dos dados
|
|
1287
1289
|
|