Merged in [18206] from rjsparks@nostrum.com:

Allow modelforms, particularly the admin, to treat joint_with_groups as a optional field. Fixes #3029.
 - Legacy-Id: 18216
Note: SVN reference [18206] has been migrated to Git commit 7a48a2b497
This commit is contained in:
Henrik Levkowetz 2020-07-21 21:30:38 +00:00
commit 34ca5946bf

View file

@ -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))