From 7a48a2b49711b575538a16d27fd698507b59f267 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Mon, 20 Jul 2020 21:12:55 +0000 Subject: [PATCH] Allow modelforms, particularly the admin, to treat joint_with_groups as a optional field. Fixes #3029. Commit ready for merge. - Legacy-Id: 18206 --- ietf/meeting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index b9e36c255..4227a3631 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -934,7 +934,7 @@ class Session(models.Model): short = models.CharField(blank=True, max_length=32, help_text="Short version of 'name' above, for use in filenames.") type = ForeignKey(TimeSlotTypeName) group = ForeignKey(Group) # The group type historically determined the session type. BOFs also need to be added as a group. Note that not all meeting requests have a natural group to associate with. - joint_with_groups = models.ManyToManyField(Group, related_name='sessions_joint_in') + joint_with_groups = models.ManyToManyField(Group, related_name='sessions_joint_in',blank=True) attendees = models.IntegerField(null=True, blank=True) agenda_note = models.CharField(blank=True, max_length=255) requested_duration = models.DurationField(default=datetime.timedelta(0))