Skip to content

Commit

Permalink
Merge pull request #994 from lakridserne/feature/membership_activitie…
Browse files Browse the repository at this point in the history
…s_2024

Make sure to use correct activitytype. Change name to proper plural
  • Loading branch information
lakridserne authored Jan 14, 2024
2 parents 128c4e8 + faa5736 commit 891a1cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.core.management.base import BaseCommand
from members.models.union import Union
from members.models.activity import Activity
from members.models.activitytype import ActivityType
from members.models.department import Department
import datetime

Expand Down Expand Up @@ -62,9 +63,10 @@ def handle(self, *args, **options):
max_participants = 9999
max_age = 99
min_age = 16
activitytype = ActivityType.objects.get(id="FORENINGSMEDLEMSKAB")

activity = Activity(
activitytype="FORENINGSMEDLEMSKAB",
activitytype=activitytype,
department=department,
union=curUnion,
name=name,
Expand Down

0 comments on commit 891a1cf

Please sign in to comment.