Hi,
I have recently returned to a Django project after a few years and I'm a little rusty on ManyToMany fields.
Here's my very simple models:
class Studio(models.Model):
name = models.CharField(max_length=255, unique=True)
class StudioGroup(models.Model):
description = models.CharField(max_length=255, unique=True)
studio = models.ManyToManyField(Studio)
So a bunch of Studio(), which can be in multiple StudioGroups()
Given a single instance of a Studio(), I would like a single list of all other studios in all other groups.
so if Group1 is A,B,C and Group2 is A,D,E
I would like to return B,C,D,E for A.
My current solution is entirely in Python (which works), but I'd like a more Django-esque solultion of possible!
Thank you,