mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Remove null from group.members model
This commit is contained in:
parent
b81fd6546f
commit
b43b0b73d4
2 changed files with 21 additions and 1 deletions
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 3.2.7 on 2021-10-20 17:33
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('core', '0005_auto_20211016_0136'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='researchgroup',
|
||||
name='members',
|
||||
field=models.ManyToManyField(blank=True, help_text='The users who belong to this group.', related_name='is_a_member_of',
|
||||
to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
|
@ -338,7 +338,7 @@ class ResearchGroup(SophonGroupModel):
|
|||
User,
|
||||
help_text="The users who belong to this group.",
|
||||
related_name="is_a_member_of",
|
||||
blank=True, null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
owner = models.ForeignKey(
|
||||
|
|
Loading…
Reference in a new issue