Hay,
I have a Model which looks like this
class Person(models.Model):
name = models.CharField(blank=False, max_length=100)
friends = models.ManyToManyField('self', blank=True, null=True)
How would i filter out a Person how has friends?
I tried
people_with_friends = Person.objects.filter(friends=True)
but had no luck.
Anyone lend a helping hand?
Thanks