Skip to content

Commit

Permalink
Merge branch 'master' of github.com:IFB-ElixirFr/ifbcat
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed Feb 18, 2022
2 parents 59b3033 + a390816 commit a2301db
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
23 changes: 23 additions & 0 deletions ifbcat_api/migrations/0178_auto_20220218_1648.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.5 on 2022-02-18 16:48

from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ifbcat_api', '0177_auto_20220218_1632'),
]

operations = [
migrations.RemoveField(
model_name='team',
name='leader',
),
migrations.AddField(
model_name='team',
name='leaders',
field=models.ManyToManyField(blank=True, help_text='Leader(s) of the team.', related_name='teamsLeaders', to=settings.AUTH_USER_MODEL),
),
]
8 changes: 3 additions & 5 deletions ifbcat_api/model/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ class CertificationType(models.TextChoices):
linkCovid19 = models.TextField(
blank=True, help_text="Describe the ways your team contributes to resources related to Covid-19."
)
leader = models.ForeignKey(
leaders = models.ManyToManyField(
UserProfile,
related_name='teamLeader',
null=True,
related_name='teamsLeaders',
blank=True,
on_delete=models.SET_NULL,
help_text="Leader of the team.",
help_text="Leader(s) of the team.",
)
deputies = models.ManyToManyField(
UserProfile,
Expand Down

0 comments on commit a2301db

Please sign in to comment.