Commit 2f7c145e authored by Sondre Westby Liestøl's avatar Sondre Westby Liestøl
Browse files

Added last migraiton

parent de1e24ed
Pipeline #161796 passed with stage
in 25 seconds
# Generated by Django 3.1 on 2022-03-13 19:55
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('workouts', '0011_auto_20220313_1412'),
]
operations = [
migrations.RemoveField(
model_name='workout',
name='group_members',
),
migrations.AddField(
model_name='workout',
name='group_members',
field=models.ManyToManyField(related_name='group_member', to=settings.AUTH_USER_MODEL),
),
]
......@@ -47,8 +47,8 @@ class Workout(models.Model):
get_user_model(), on_delete=models.CASCADE, related_name="workouts"
)
difficulty = models.IntegerField(default=1)
group_members = models.ForeignKey(
get_user_model(), on_delete=models.CASCADE, related_name="group_member", blank=True, null=True
group_members = models.ManyToManyField(
get_user_model(), related_name="group_member"
)
# Visibility levels
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment