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