Get objects from a many to many field Get objects from a many to many field django django

Get objects from a many to many field


You can use:

space.related.all()

to return a QuerySet of User


To get all many_to_many objects (not for specific space), for me works

Space.admins.through.objects.all()

(Django 2.14)