Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from opentech.apply.funds.management.commands.migration_base import MigrateCommand
class Command(MigrateCommand):
CONTENT_TYPE = "fund"
FUND_NAME = "Fellowship archive fund"
ROUND_NAME = "Fellowship archive round"
APPLICATION_TYPE = "proposal"
STREAMFIELD_MAP = {
"title": {
"id": "title",
"type": "direct",
},
"field_proposal_common_name": {
"id": "full_name",
"type": "value",
# If no Drupal value key is specified, we default to 'value'
"key": "safe_value",
},
"field_proposal_host_text": {
"id": "bc03235e-3c78-4770-9fc2-97feb93c2c8c",
"type": "value",
"key": "safe_value",
},
"field_proposal_start_date": {
"id": "672cb6f1-335c-4005-a0f1-46c414feda06",
"type": "value",
"key": "value",
},
"field_proposal_completion_date": {
"id": "8262f209-f084-4a79-9dfa-2d18137119bb",
"type": "value",
"key": "value",
},
"field_proposal_objectives": {
"id": "af2c5f38-7257-4295-87fa-787060e845ef",
"type": "value",
"key": "safe_value",
},
"field_proposal_activities": {
"id": "3c521847-7642-4cae-aca9-d5336ad8962d",
"type": "value",
"key": "safe_value",
},
"field_proposal_sustainability": {
"id": "fd0eb7ea-e054-4bcf-9580-eb672d44745c",
"type": "value",
"key": "safe_value",
},
"field_proposal_request_questions": {
"id": "b6d71932-98c2-4ce8-a5e6-454a1f800d21",
"type": "value",
"key": "safe_value",
},
"field_proposal_upload": {
"id": "30dfa46e-f656-46c9-9efc-bab9029f2008",
"type": "file",
# TODO: finish mapping
},
}