Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix part types on newer activities
Browse files Browse the repository at this point in the history
  • Loading branch information
hcientist committed Jul 19, 2022
1 parent 5fa3c4b commit b2c3508
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 3.2.11 on 2022-06-18 02:11

from math import comb
from django.db import migrations


Expand All @@ -10,9 +9,11 @@ def assign_part_type(apps, schema_editor):
ActivityType = apps.get_model("assignments", "ActivityType")
PartType = apps.get_model("musics", "PartType")
combined_part_type = PartType.objects.get(name="Combined")
record = Activity.objects.get(activity_type=ActivityType.objects.get(name="Creativity"),).part_type=combined_part_type
record = Activity.objects.get(activity_type=ActivityType.objects.get(name="Creativity"),)
record.part_type=combined_part_type
record.save()
record = Activity.objects.get(activity_type=ActivityType.objects.get(name="Reflection"),).part_type=combined_part_type
record = Activity.objects.get(activity_type=ActivityType.objects.get(name="Reflection"),)
record.part_type=combined_part_type
record.save()


Expand Down

0 comments on commit b2c3508

Please sign in to comment.