Class Meeting(models.Model):
name = models.CharField(max_length = 255)
Class Group(models.Model):
name = models.CharField(max_length = 255)
meeting = models.ManyToManyField(Meeting ,through=GroupMeeting)
GroupMeeting(models.Model):
meeting = models.ForeignKey(Meeting, on_delete=models.CASCADE)
group = models.ForeignKey(Group, on_delete=models.CASCADE)
Meeting
приписывать связь к Group
?? group = Group.objects.create(name='some_name_group')
meeting = Meeting.objects.create(name='some_meeting_name')
group.meeting.add(meeting)