wagtailstreamforms 4.0.4__tar.gz → 4.1.0__tar.gz
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.
- {wagtailstreamforms-4.0.4/wagtailstreamforms.egg-info → wagtailstreamforms-4.1.0}/PKG-INFO +1 -1
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/setup.cfg +1 -1
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/setup.py +4 -2
- wagtailstreamforms-4.1.0/wagtailstreamforms/__init__.py +1 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/0001_initial.py +73 -72
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/wagtailstreamforms_fields.py +20 -2
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0/wagtailstreamforms.egg-info}/PKG-INFO +1 -1
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/requires.txt +4 -2
- wagtailstreamforms-4.0.4/wagtailstreamforms/__init__.py +0 -1
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/LICENSE +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/MANIFEST.in +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/README.rst +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/pyproject.toml +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/blocks.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/conf.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/fields.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/forms.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/hooks.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/es/LC_MESSAGES/django.mo +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/es/LC_MESSAGES/django.po +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/nl/LC_MESSAGES/django.mo +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/nl/LC_MESSAGES/django.po +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/tr/LC_MESSAGES/django.mo +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/locale/tr/LC_MESSAGES/django.po +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/management/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/management/commands/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/management/commands/prunesubmissions.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/0002_form_site.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/0003_alter_form_fields.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/abstract.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/file.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/form.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/submission.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/serializers.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/streamfield.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/advanced_settings.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/confirm_copy.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/confirm_delete.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/form_block.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/index_submissions.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/list_submissions.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/non_existent_form.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/partials/form_field.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/partials/pagination_nav.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templates/streamforms/wagtailadmin/shared/datetimepicker_translations.html +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templatetags/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templatetags/streamforms_tags.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/urls.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/apps.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/general.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/loading.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/requests.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/utils/version.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/__init__.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/advanced_settings.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/copy.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/submission_delete.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/submission_list.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/wagtail_hooks.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/wagtailstreamforms_hooks.py +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/SOURCES.txt +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/dependency_links.txt +0 -0
- {wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/top_level.txt +0 -0
|
@@ -9,6 +9,8 @@ from wagtailstreamforms import __version__
|
|
|
9
9
|
|
|
10
10
|
tests_require = [
|
|
11
11
|
"mock==4.0.2",
|
|
12
|
+
"pytest-django==4.7.0",
|
|
13
|
+
"pytest==7.3.2",
|
|
12
14
|
# Linting
|
|
13
15
|
"isort[pyproject]==4.3.21",
|
|
14
16
|
"flake8==3.7.9",
|
|
@@ -18,9 +20,9 @@ tests_require = [
|
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
install_requires = [
|
|
21
|
-
"wagtail>=4.1,<
|
|
23
|
+
"wagtail>=4.1,<5.3",
|
|
22
24
|
"Unidecode>=0.04.14,<2.0",
|
|
23
|
-
"wagtail-generic-chooser>=0.5.0,<0.
|
|
25
|
+
"wagtail-generic-chooser>=0.5.0,<0.7",
|
|
24
26
|
]
|
|
25
27
|
|
|
26
28
|
documentation_extras = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.1.0"
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/0001_initial.py
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Generated by Django 2.0.5 on 2018-05-30 23:03
|
|
2
2
|
|
|
3
3
|
import django.db.models.deletion
|
|
4
|
-
import
|
|
4
|
+
from wagtail import blocks
|
|
5
|
+
|
|
5
6
|
from django.db import migrations, models
|
|
6
7
|
|
|
7
8
|
import wagtailstreamforms.conf
|
|
@@ -52,24 +53,24 @@ class Migration(migrations.Migration):
|
|
|
52
53
|
[
|
|
53
54
|
(
|
|
54
55
|
"singleline",
|
|
55
|
-
|
|
56
|
+
blocks.StructBlock(
|
|
56
57
|
[
|
|
57
|
-
("label",
|
|
58
|
+
("label", blocks.CharBlock()),
|
|
58
59
|
(
|
|
59
60
|
"help_text",
|
|
60
|
-
|
|
61
|
+
blocks.CharBlock(
|
|
61
62
|
required=False
|
|
62
63
|
),
|
|
63
64
|
),
|
|
64
65
|
(
|
|
65
66
|
"required",
|
|
66
|
-
|
|
67
|
+
blocks.BooleanBlock(
|
|
67
68
|
required=False
|
|
68
69
|
),
|
|
69
70
|
),
|
|
70
71
|
(
|
|
71
72
|
"default_value",
|
|
72
|
-
|
|
73
|
+
blocks.CharBlock(
|
|
73
74
|
required=False
|
|
74
75
|
),
|
|
75
76
|
),
|
|
@@ -80,24 +81,24 @@ class Migration(migrations.Migration):
|
|
|
80
81
|
),
|
|
81
82
|
(
|
|
82
83
|
"multiline",
|
|
83
|
-
|
|
84
|
+
blocks.StructBlock(
|
|
84
85
|
[
|
|
85
|
-
("label",
|
|
86
|
+
("label", blocks.CharBlock()),
|
|
86
87
|
(
|
|
87
88
|
"help_text",
|
|
88
|
-
|
|
89
|
+
blocks.CharBlock(
|
|
89
90
|
required=False
|
|
90
91
|
),
|
|
91
92
|
),
|
|
92
93
|
(
|
|
93
94
|
"required",
|
|
94
|
-
|
|
95
|
+
blocks.BooleanBlock(
|
|
95
96
|
required=False
|
|
96
97
|
),
|
|
97
98
|
),
|
|
98
99
|
(
|
|
99
100
|
"default_value",
|
|
100
|
-
|
|
101
|
+
blocks.CharBlock(
|
|
101
102
|
required=False
|
|
102
103
|
),
|
|
103
104
|
),
|
|
@@ -108,24 +109,24 @@ class Migration(migrations.Migration):
|
|
|
108
109
|
),
|
|
109
110
|
(
|
|
110
111
|
"date",
|
|
111
|
-
|
|
112
|
+
blocks.StructBlock(
|
|
112
113
|
[
|
|
113
|
-
("label",
|
|
114
|
+
("label", blocks.CharBlock()),
|
|
114
115
|
(
|
|
115
116
|
"help_text",
|
|
116
|
-
|
|
117
|
+
blocks.CharBlock(
|
|
117
118
|
required=False
|
|
118
119
|
),
|
|
119
120
|
),
|
|
120
121
|
(
|
|
121
122
|
"required",
|
|
122
|
-
|
|
123
|
+
blocks.BooleanBlock(
|
|
123
124
|
required=False
|
|
124
125
|
),
|
|
125
126
|
),
|
|
126
127
|
(
|
|
127
128
|
"default_value",
|
|
128
|
-
|
|
129
|
+
blocks.CharBlock(
|
|
129
130
|
required=False
|
|
130
131
|
),
|
|
131
132
|
),
|
|
@@ -136,24 +137,24 @@ class Migration(migrations.Migration):
|
|
|
136
137
|
),
|
|
137
138
|
(
|
|
138
139
|
"datetime",
|
|
139
|
-
|
|
140
|
+
blocks.StructBlock(
|
|
140
141
|
[
|
|
141
|
-
("label",
|
|
142
|
+
("label", blocks.CharBlock()),
|
|
142
143
|
(
|
|
143
144
|
"help_text",
|
|
144
|
-
|
|
145
|
+
blocks.CharBlock(
|
|
145
146
|
required=False
|
|
146
147
|
),
|
|
147
148
|
),
|
|
148
149
|
(
|
|
149
150
|
"required",
|
|
150
|
-
|
|
151
|
+
blocks.BooleanBlock(
|
|
151
152
|
required=False
|
|
152
153
|
),
|
|
153
154
|
),
|
|
154
155
|
(
|
|
155
156
|
"default_value",
|
|
156
|
-
|
|
157
|
+
blocks.CharBlock(
|
|
157
158
|
required=False
|
|
158
159
|
),
|
|
159
160
|
),
|
|
@@ -164,24 +165,24 @@ class Migration(migrations.Migration):
|
|
|
164
165
|
),
|
|
165
166
|
(
|
|
166
167
|
"email",
|
|
167
|
-
|
|
168
|
+
blocks.StructBlock(
|
|
168
169
|
[
|
|
169
|
-
("label",
|
|
170
|
+
("label", blocks.CharBlock()),
|
|
170
171
|
(
|
|
171
172
|
"help_text",
|
|
172
|
-
|
|
173
|
+
blocks.CharBlock(
|
|
173
174
|
required=False
|
|
174
175
|
),
|
|
175
176
|
),
|
|
176
177
|
(
|
|
177
178
|
"required",
|
|
178
|
-
|
|
179
|
+
blocks.BooleanBlock(
|
|
179
180
|
required=False
|
|
180
181
|
),
|
|
181
182
|
),
|
|
182
183
|
(
|
|
183
184
|
"default_value",
|
|
184
|
-
|
|
185
|
+
blocks.CharBlock(
|
|
185
186
|
required=False
|
|
186
187
|
),
|
|
187
188
|
),
|
|
@@ -192,24 +193,24 @@ class Migration(migrations.Migration):
|
|
|
192
193
|
),
|
|
193
194
|
(
|
|
194
195
|
"url",
|
|
195
|
-
|
|
196
|
+
blocks.StructBlock(
|
|
196
197
|
[
|
|
197
|
-
("label",
|
|
198
|
+
("label", blocks.CharBlock()),
|
|
198
199
|
(
|
|
199
200
|
"help_text",
|
|
200
|
-
|
|
201
|
+
blocks.CharBlock(
|
|
201
202
|
required=False
|
|
202
203
|
),
|
|
203
204
|
),
|
|
204
205
|
(
|
|
205
206
|
"required",
|
|
206
|
-
|
|
207
|
+
blocks.BooleanBlock(
|
|
207
208
|
required=False
|
|
208
209
|
),
|
|
209
210
|
),
|
|
210
211
|
(
|
|
211
212
|
"default_value",
|
|
212
|
-
|
|
213
|
+
blocks.CharBlock(
|
|
213
214
|
required=False
|
|
214
215
|
),
|
|
215
216
|
),
|
|
@@ -220,24 +221,24 @@ class Migration(migrations.Migration):
|
|
|
220
221
|
),
|
|
221
222
|
(
|
|
222
223
|
"number",
|
|
223
|
-
|
|
224
|
+
blocks.StructBlock(
|
|
224
225
|
[
|
|
225
|
-
("label",
|
|
226
|
+
("label", blocks.CharBlock()),
|
|
226
227
|
(
|
|
227
228
|
"help_text",
|
|
228
|
-
|
|
229
|
+
blocks.CharBlock(
|
|
229
230
|
required=False
|
|
230
231
|
),
|
|
231
232
|
),
|
|
232
233
|
(
|
|
233
234
|
"required",
|
|
234
|
-
|
|
235
|
+
blocks.BooleanBlock(
|
|
235
236
|
required=False
|
|
236
237
|
),
|
|
237
238
|
),
|
|
238
239
|
(
|
|
239
240
|
"default_value",
|
|
240
|
-
|
|
241
|
+
blocks.CharBlock(
|
|
241
242
|
required=False
|
|
242
243
|
),
|
|
243
244
|
),
|
|
@@ -248,31 +249,31 @@ class Migration(migrations.Migration):
|
|
|
248
249
|
),
|
|
249
250
|
(
|
|
250
251
|
"dropdown",
|
|
251
|
-
|
|
252
|
+
blocks.StructBlock(
|
|
252
253
|
[
|
|
253
|
-
("label",
|
|
254
|
+
("label", blocks.CharBlock()),
|
|
254
255
|
(
|
|
255
256
|
"help_text",
|
|
256
|
-
|
|
257
|
+
blocks.CharBlock(
|
|
257
258
|
required=False
|
|
258
259
|
),
|
|
259
260
|
),
|
|
260
261
|
(
|
|
261
262
|
"required",
|
|
262
|
-
|
|
263
|
+
blocks.BooleanBlock(
|
|
263
264
|
required=False
|
|
264
265
|
),
|
|
265
266
|
),
|
|
266
267
|
(
|
|
267
268
|
"empty_label",
|
|
268
|
-
|
|
269
|
+
blocks.CharBlock(
|
|
269
270
|
required=False
|
|
270
271
|
),
|
|
271
272
|
),
|
|
272
273
|
(
|
|
273
274
|
"choices",
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
blocks.ListBlock(
|
|
276
|
+
blocks.CharBlock(
|
|
276
277
|
label="Option"
|
|
277
278
|
)
|
|
278
279
|
),
|
|
@@ -284,25 +285,25 @@ class Migration(migrations.Migration):
|
|
|
284
285
|
),
|
|
285
286
|
(
|
|
286
287
|
"radio",
|
|
287
|
-
|
|
288
|
+
blocks.StructBlock(
|
|
288
289
|
[
|
|
289
|
-
("label",
|
|
290
|
+
("label", blocks.CharBlock()),
|
|
290
291
|
(
|
|
291
292
|
"help_text",
|
|
292
|
-
|
|
293
|
+
blocks.CharBlock(
|
|
293
294
|
required=False
|
|
294
295
|
),
|
|
295
296
|
),
|
|
296
297
|
(
|
|
297
298
|
"required",
|
|
298
|
-
|
|
299
|
+
blocks.BooleanBlock(
|
|
299
300
|
required=False
|
|
300
301
|
),
|
|
301
302
|
),
|
|
302
303
|
(
|
|
303
304
|
"choices",
|
|
304
|
-
|
|
305
|
-
|
|
305
|
+
blocks.ListBlock(
|
|
306
|
+
blocks.CharBlock(
|
|
306
307
|
label="Option"
|
|
307
308
|
)
|
|
308
309
|
),
|
|
@@ -314,25 +315,25 @@ class Migration(migrations.Migration):
|
|
|
314
315
|
),
|
|
315
316
|
(
|
|
316
317
|
"checkboxes",
|
|
317
|
-
|
|
318
|
+
blocks.StructBlock(
|
|
318
319
|
[
|
|
319
|
-
("label",
|
|
320
|
+
("label", blocks.CharBlock()),
|
|
320
321
|
(
|
|
321
322
|
"help_text",
|
|
322
|
-
|
|
323
|
+
blocks.CharBlock(
|
|
323
324
|
required=False
|
|
324
325
|
),
|
|
325
326
|
),
|
|
326
327
|
(
|
|
327
328
|
"required",
|
|
328
|
-
|
|
329
|
+
blocks.BooleanBlock(
|
|
329
330
|
required=False
|
|
330
331
|
),
|
|
331
332
|
),
|
|
332
333
|
(
|
|
333
334
|
"choices",
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
blocks.ListBlock(
|
|
336
|
+
blocks.CharBlock(
|
|
336
337
|
label="Option"
|
|
337
338
|
)
|
|
338
339
|
),
|
|
@@ -344,18 +345,18 @@ class Migration(migrations.Migration):
|
|
|
344
345
|
),
|
|
345
346
|
(
|
|
346
347
|
"checkbox",
|
|
347
|
-
|
|
348
|
+
blocks.StructBlock(
|
|
348
349
|
[
|
|
349
|
-
("label",
|
|
350
|
+
("label", blocks.CharBlock()),
|
|
350
351
|
(
|
|
351
352
|
"help_text",
|
|
352
|
-
|
|
353
|
+
blocks.CharBlock(
|
|
353
354
|
required=False
|
|
354
355
|
),
|
|
355
356
|
),
|
|
356
357
|
(
|
|
357
358
|
"required",
|
|
358
|
-
|
|
359
|
+
blocks.BooleanBlock(
|
|
359
360
|
required=False
|
|
360
361
|
),
|
|
361
362
|
),
|
|
@@ -366,24 +367,24 @@ class Migration(migrations.Migration):
|
|
|
366
367
|
),
|
|
367
368
|
(
|
|
368
369
|
"hidden",
|
|
369
|
-
|
|
370
|
+
blocks.StructBlock(
|
|
370
371
|
[
|
|
371
|
-
("label",
|
|
372
|
+
("label", blocks.CharBlock()),
|
|
372
373
|
(
|
|
373
374
|
"help_text",
|
|
374
|
-
|
|
375
|
+
blocks.CharBlock(
|
|
375
376
|
required=False
|
|
376
377
|
),
|
|
377
378
|
),
|
|
378
379
|
(
|
|
379
380
|
"required",
|
|
380
|
-
|
|
381
|
+
blocks.BooleanBlock(
|
|
381
382
|
required=False
|
|
382
383
|
),
|
|
383
384
|
),
|
|
384
385
|
(
|
|
385
386
|
"default_value",
|
|
386
|
-
|
|
387
|
+
blocks.CharBlock(
|
|
387
388
|
required=False
|
|
388
389
|
),
|
|
389
390
|
),
|
|
@@ -394,18 +395,18 @@ class Migration(migrations.Migration):
|
|
|
394
395
|
),
|
|
395
396
|
(
|
|
396
397
|
"singlefile",
|
|
397
|
-
|
|
398
|
+
blocks.StructBlock(
|
|
398
399
|
[
|
|
399
|
-
("label",
|
|
400
|
+
("label", blocks.CharBlock()),
|
|
400
401
|
(
|
|
401
402
|
"help_text",
|
|
402
|
-
|
|
403
|
+
blocks.CharBlock(
|
|
403
404
|
required=False
|
|
404
405
|
),
|
|
405
406
|
),
|
|
406
407
|
(
|
|
407
408
|
"required",
|
|
408
|
-
|
|
409
|
+
blocks.BooleanBlock(
|
|
409
410
|
required=False
|
|
410
411
|
),
|
|
411
412
|
),
|
|
@@ -416,18 +417,18 @@ class Migration(migrations.Migration):
|
|
|
416
417
|
),
|
|
417
418
|
(
|
|
418
419
|
"multifile",
|
|
419
|
-
|
|
420
|
+
blocks.StructBlock(
|
|
420
421
|
[
|
|
421
|
-
("label",
|
|
422
|
+
("label", blocks.CharBlock()),
|
|
422
423
|
(
|
|
423
424
|
"help_text",
|
|
424
|
-
|
|
425
|
+
blocks.CharBlock(
|
|
425
426
|
required=False
|
|
426
427
|
),
|
|
427
428
|
),
|
|
428
429
|
(
|
|
429
430
|
"required",
|
|
430
|
-
|
|
431
|
+
blocks.BooleanBlock(
|
|
431
432
|
required=False
|
|
432
433
|
),
|
|
433
434
|
),
|
|
@@ -212,9 +212,27 @@ class SingleFileField(BaseField):
|
|
|
212
212
|
)
|
|
213
213
|
|
|
214
214
|
|
|
215
|
+
class MultipleFileInput(forms.ClearableFileInput):
|
|
216
|
+
allow_multiple_selected = True
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
class MultipleFileField(forms.FileField):
|
|
220
|
+
def __init__(self, *args, **kwargs):
|
|
221
|
+
kwargs.setdefault("widget", MultipleFileInput())
|
|
222
|
+
super().__init__(*args, **kwargs)
|
|
223
|
+
|
|
224
|
+
def clean(self, data, initial=None):
|
|
225
|
+
single_file_clean = super().clean
|
|
226
|
+
if data and isinstance(data, (list, tuple)):
|
|
227
|
+
result = [single_file_clean(d, initial) for d in data]
|
|
228
|
+
else:
|
|
229
|
+
result = single_file_clean(data, initial)
|
|
230
|
+
return result
|
|
231
|
+
|
|
232
|
+
|
|
215
233
|
class MultiFileField(BaseField):
|
|
216
|
-
field_class =
|
|
217
|
-
widget =
|
|
234
|
+
field_class = MultipleFileField
|
|
235
|
+
widget = MultipleFileInput(attrs={"multiple": True})
|
|
218
236
|
icon = "doc-full-inverse"
|
|
219
237
|
label = _("Files field")
|
|
220
238
|
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/requires.txt
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
wagtail<
|
|
1
|
+
wagtail<5.3,>=4.1
|
|
2
2
|
Unidecode<2.0,>=0.04.14
|
|
3
|
-
wagtail-generic-chooser<0.
|
|
3
|
+
wagtail-generic-chooser<0.7,>=0.5.0
|
|
4
4
|
|
|
5
5
|
[docs]
|
|
6
6
|
sphinxcontrib-spelling>=2.3.0
|
|
@@ -10,6 +10,8 @@ karma_sphinx_theme>=0.0.6
|
|
|
10
10
|
|
|
11
11
|
[test]
|
|
12
12
|
mock==4.0.2
|
|
13
|
+
pytest-django==4.7.0
|
|
14
|
+
pytest==7.3.2
|
|
13
15
|
isort[pyproject]==4.3.21
|
|
14
16
|
flake8==3.7.9
|
|
15
17
|
flake8-blind-except==0.1.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.0.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/management/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/models/submission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/templatetags/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/advanced_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/submission_delete.py
RENAMED
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/views/submission_list.py
RENAMED
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms/wagtailstreamforms_hooks.py
RENAMED
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{wagtailstreamforms-4.0.4 → wagtailstreamforms-4.1.0}/wagtailstreamforms.egg-info/top_level.txt
RENAMED
|
File without changes
|