Django - get objects from a many to many field
you can:
space.related.all()
to return a QuerySet of User
For Django >= 1.9
space.admins.all()
*As mentioned by Salvatore Iovene
you can:
space.related.all()
to return a QuerySet of User
For Django >= 1.9
space.admins.all()
*As mentioned by Salvatore Iovene