def create_concept_note_form(self):
focus_id = Category.objects.get(name="Focus").id
objectives_id = Category.objects.get(name="Objective(s)").id
beneficiaries_id = Category.objects.get(name="Beneficiaries").id
regions_id = Category.objects.get(name="Region(s)").id
addressed_id = Category.objects.get(name="Addressed problems").id
status_id = Category.objects.get(name="Project status").id
tech_id = Category.objects.get(name="Technology attributes").id
countries_id = Category.objects.get(name="Countries").id
data = [
{
"type": "text_markup",
"value": "<h3>Basic information</h3>",
"id": "25108c8b-c268-4f47-a441-99c3bc4ce43a",
},
{
"type": "title",
"value": {
"field_label": "What is your project name?",
"help_text": "",
"info": None,
},
"id": "fd8e6437-89a4-4515-84d0-15c31be716ea",
},
{
"type": "full_name",
"value": {"field_label": "Your name", "help_text": "", "info": None},
"id": "825f74bf-9419-411a-97d1-631346ae7218",
},
{
"type": "email",
"value": {"field_label": "E-mail", "help_text": "", "info": None},
"id": "d66e3f38-48db-498a-83a5-4781ded03941",
},
{
"type": "address",
"value": {"field_label": "Address", "help_text": "", "info": None},
"id": "ea070127-684c-4136-8489-63c352b409c9",
},
{
"type": "dropdown",
"value": {
"field_label": "Have you ever applied to or received funding as an OTF project?",
"help_text": "",
"required": "",
"choices": ["Yes", "No"],
},
"id": "0305a465-8763-4c1f-9197-4ca4227d452a",
},
{
"type": "rich_text",
"value": {
"field_label": "If yes, which application and what was the outcome?",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "c24691be-9861-4dbc-8be4-03b6e68c1973",
},
{
"type": "text_markup",
"value": "<h3>What is your idea?</h3>",
"id": "0702b9e5-2624-40a0-9caa-42ff46797fb6",
},
{
"type": "rich_text",
"value": {
"field_label": "Describe it",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "c21c58c3-cfbe-4409-b2f2-8f56398f1731",
},
{
"type": "rich_text",
"value": {
"field_label": "What are hoped for goals or longer term effects of the project?",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "27289c14-6926-4f61-bea2-8031a653f71c",
},
{
"type": "category",
"value": {
"field_label": "Focus",
"help_text": "",
"required": "",
"category": focus_id,
"multi": "true",
},
"id": "404e2310-000b-4ccb-b772-3680946ff07d",
},
{
"type": "category",
"value": {
"field_label": "Status",
"help_text": "",
"required": "",
"category": status_id,
"multi": "true",
},
"id": "145c364f-e0bb-4652-94e8-fe08c831da2b",
},
{
"type": "category",
"value": {
"field_label": "Technology attributes",
"help_text": "",
"required": "",
"category": tech_id,
"multi": "true",
},
"id": "b4da2310-9654-4aa7-a04a-06335967ddc5",
},
{
"type": "text_markup",
"value": "<h3>How will you do it?</h3>",
"id": "e5fe71f5-8ec5-4ac9-ba21-38e03cdcf73b",
},
{
"type": "rich_text",
"value": {
"field_label": "Describe how",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "418b8099-4525-437f-a55c-9b35745d0384",
},
{
"type": "category",
"value": {
"field_label": "Objective(s)",
"help_text": "",
"required": "",
"category": objectives_id,
"multi": "true",
},
"id": "390702bd-e4e1-4dc2-8c43-d51bf018b427",
},
{
"type": "duration",
"value": {
"field_label": "How long will it take?",
"help_text": "",
"info": None,
},
"id": "b8d4f24f-c5bd-4a18-aa13-7c7358b3f99f",
},
{
"type": "value",
"value": {
"field_label": "How much do you want?",
"help_text": "",
"info": None,
},
"id": "1e669b4d-e43f-4c7a-9730-08e25cb1592d",
},
{
"type": "rich_text",
"value": {
"field_label": "How long have you been thinking of working on this idea? What made you first think about it?",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "dfb9c307-9328-4a99-9efc-321d474b2ba7",
},
{
"type": "text_markup",
"value": "<h3>Who is the project for?</h3>",
"id": "563c12f1-d856-4ee2-a449-793bbfd12296",
},
{
"type": "rich_text",
"value": {
"field_label": "Describe them",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "11f94a22-0571-4491-a93e-87c050e02a4a",
},
{
"type": "rich_text",
"value": {
"field_label": "What community currently exists around this project?",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "c272969b-d89f-4b6e-859f-4606a15b3f28",
},
{
"type": "category",
"value": {
"field_label": "Beneficiaries",
"help_text": "",
"required": "",
"category": beneficiaries_id,
"multi": "true",
},
"id": "72002c3e-aaee-47da-9377-8bb493f14c21",
},
{
"type": "category",
"value": {
"field_label": "Region",
"help_text": "",
"required": "",
"category": regions_id,
"multi": "true",
},
"id": "369b248e-f669-4aeb-b771-7cba0eadb921",
},
{
"type": "category",
"value": {
"field_label": "Country",
"help_text": "",
"required": "",
"category": countries_id,
"multi": "true",
},
"id": "57bceb33-ebda-4708-9080-fd1a5923e008",
},
{
"type": "text_markup",
"value": "<h3>Why is this project needed?</h3>",
"id": "ab556178-07b5-468e-b1cf-46655859fd32",
},
{
"type": "rich_text",
"value": {
"field_label": "Describe why",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "c14ee077-c0eb-48b1-9825-fbba9b91ede5",
},
{
"type": "category",
"value": {
"field_label": "Addressed problems",
"help_text": "",
"required": "",
"category": addressed_id,
"multi": "true",
},
"id": "a83a1884-f711-4196-8d15-ae2110466acb",
},
{
"type": "rich_text",
"value": {
"field_label": "Similar/Complementary efforts",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "9ca35708-d611-4cd0-8d4a-3cc08349f45b",
},
{
"type": "rich_text",
"value": {
"field_label": "Other information",
"help_text": "",
"required": "",
"default_value": "",
},
"id": "db7b1642-c03d-4af4-82c9-db67bf9713b0",
},
{
"type": "multi_file",
"value": {"field_label": "Upload", "help_text": "", "required": ""},
"id": "8a91231c-5c3d-46fe-9de6-8d5c86817626",
},
{
"type": "text_markup",
"value": "<h3>I acknowledge</h3>",
"id": "2c1651a4-2cdc-4b74-8b6e-f077364ca4d8",
},
{
"type": "checkbox",
"value": {
"field_label": "My application will be dismissed if it does not fit within OTF's mission, values, principles statements.",
"help_text": "",
"default_value": "",
},
"id": "4c661a64-2614-4169-b4d2-1fd39e2e831b",
},
{
"type": "text_markup",
"value": 'Read our <a href="\\/about/program">mission, values, and principles</a>.',
"id": "cfdd721d-a4d6-44a8-a2d6-6576f126799b",
},
{
"type": "checkbox",
"value": {
"field_label": "I have read and understand OTF's Terms and Privacy policy.",
"help_text": "",
"default_value": "",
},
"id": "1bc4e113-1414-46ff-bba7-2dc02b2126df",
},
{
"type": "text_markup",
"value": 'Read the <a href="\\/tos">Terms and Privacy policy</a>.',
"id": "d1c79c07-02cb-4f59-b5ed-719da7bdd636",
},
{
"type": "checkbox",
"value": {
"field_label": "I am legally able to sign contracts or represent an organization that can.",
"help_text": "",
"default_value": "",
},
"id": "42dd68a1-b699-4678-bea6-13e0f842e821",
},
{
"type": "checkbox",
"value": {
"field_label": "I understand that all intellectual property created with support for this application must be openly licensed.",
"help_text": "",
"default_value": "",
},
"id": "72916731-ec97-4688-95f1-d3bf140b03c2",
},
{
"type": "checkbox",
"value": {
"field_label": "I understand that if my application is incomplete in any way, it will be dismissed.",
"help_text": "",
"default_value": "",
},
"id": "6856d26d-b169-4fdf-b598-63c3dd9278a2",
},
{
"type": "checkbox",
"value": {
"field_label": "I understand that if my application is after a deadline, it will not be reviewed until after the next deadline.",
"help_text": "",
"default_value": "",
},
"id": "33838399-f292-4b63-83f0-e02d344f99d4",
},
{
"type": "text_markup",
"value": "<h3>I would like to</h3>",
"id": "3ff08317-92ab-4eb1-adca-08547bed96f8",
},
{
"type": "checkbox",
"value": {
"field_label": "Sign up to the OTF-Announce list, low traffic (funding opportunities, major alerts, etc).",
"help_text": "",
"default_value": "",
},
"id": "fc571e12-d4a2-4d53-ab34-2c57321dc6ac",
},
{
"type": "checkbox",
"value": {
"field_label": "Sign up for OTF's daily newsletter (collection of news related to global internet freedom).",
"help_text": "",
"default_value": "",
},
"id": "cd0d8a4b-e71a-4dff-964a-f547bd655e7d",
},
]
application_form, _ = ApplicationForm.objects.get_or_create(
name="Concept note", defaults={"form_fields": json.dumps(data)}
)
return application_form