Repository: webkom/lego

Issue:
Update interest form with requirements from Bedkom
As per the email, they want the following changes to the interest form before Monday.

1. We would like to add "Digitalt arrangement" as one of the options

1. Change the "Bedex" alternative to "Bedex (vinter 2021)" 

The form they refer to is located here https://abakus.no/interesse

This feature is called `companyInterest` in LEGO frontend and backend.

Start looking here in the frontend
https://github.com/webkom/lego-webapp/tree/master/app/routes/companyInterest

And here in the backend
https://github.com/webkom/lego/blob/873f6898e35ed2d9a33bdfb8339eaf6c9a61470c/lego/apps/companies/models.py#L108
https://github.com/webkom/lego/blob/873f6898e35ed2d9a33bdfb8339eaf6c9a61470c/lego/apps/companies/constants.py#L58




Discussion:

Resolving patch:
diff --git a/lego/apps/companies/constants.py b/lego/apps/companies/constants.py
--- a/lego/apps/companies/constants.py
+++ b/lego/apps/companies/constants.py
@@ -7,14 +7,16 @@
 COURSE = "course"
 LUNCH_PRESENTATION = "lunch_presentation"
 BEDEX = "bedex"
+DIGITAL_PRESENTATION = "digital_presentation"
 OTHER = "other"
 SPONSOR = "sponsor"
 START_UP = "start_up"
 
 COMPANY_EVENTS = (
     (COMPANY_PRESENTATION, COMPANY_PRESENTATION),
-    (COURSE, COURSE),
     (LUNCH_PRESENTATION, LUNCH_PRESENTATION),
+    (COURSE, COURSE),
+    (DIGITAL_PRESENTATION, DIGITAL_PRESENTATION),
     (BEDEX, BEDEX),
     (OTHER, OTHER),
     (SPONSOR, SPONSOR),
@@ -23,9 +25,10 @@
 
 TRANSLATED_EVENTS = {
     COMPANY_PRESENTATION: "Bedriftspresentasjon",
-    COURSE: "Kurs",
     LUNCH_PRESENTATION: "Lunsjpresentasjon",
-    BEDEX: "Bedex",
+    COURSE: "Kurs",
+    DIGITAL_PRESENTATION: "Digital presentasjon",
+    BEDEX: "BedEx (vinter 2021)",
     OTHER: "Alternativt arrangement",
     START_UP: "Start-up kveld",
 }
diff --git a/lego/apps/companies/migrations/0018_auto_20200927_1524.py b/lego/apps/companies/migrations/0018_auto_20200927_1524.py
new file mode 100644
--- /dev/null
+++ b/lego/apps/companies/migrations/0018_auto_20200927_1524.py
@@ -0,0 +1,34 @@
+# Generated by Django 2.2.13 on 2020-09-27 15:24
+
+import django.contrib.postgres.fields
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("companies", "0017_auto_20200224_1519"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="companyinterest",
+            name="events",
+            field=django.contrib.postgres.fields.ArrayField(
+                base_field=models.CharField(
+                    choices=[
+                        ("company_presentation", "company_presentation"),
+                        ("lunch_presentation", "lunch_presentation"),
+                        ("course", "course"),
+                        ("digital_presentation", "digital_presentation"),
+                        ("bedex", "bedex"),
+                        ("other", "other"),
+                        ("sponsor", "sponsor"),
+                        ("start_up", "start_up"),
+                    ],
+                    max_length=64,
+                ),
+                size=None,
+            ),
+        ),
+    ]


Test patch: