manyrelatedmanager

Django: ManyRelatedManager is not Callable

I have a site with users who can take terms at University: class Term(models.Model): school = models.ForeignKey(School) name = models.CharField(max_length=200) isPrimaryTerm = models.BooleanField() date = models.DateField() class MyUser(models.Model): user = models.ForeignKey(User, unique=True) takingReqSets = m...

How to check the type of a many-to-many-field in django?

How can you check the type of a many-to-many-field in django? I wanted to do it this way: import django field.__class__ == django.db.models.fields.related.ManyRelatedManager This doesn't work, because the class ManyRelatedManager can't be found. But if i do field.__class__ the output is django.db.models.fields.related.ManyRelatedManager...