2👍
Like Abid A already answered, you are missing brackets ()
for t in myStuff.things.all():
print t.myStuffs.all()
- [Django]-What does this Django regular expression mean? `?P`
- [Django]-Add a custom button to a Django application's admin page
- [Django]-Docker/Kubernetes + Gunicorn/Celery – Multiple Workers vs Replicas?
0👍
ManyToManyField seems to have a different kind of Manager than your basic Django class. Looking at the source here, https://github.com/django/django/blob/master/django/db/models/fields/related_descriptors.py#L821, it seems you are looking for the related_val field which appears to contain the tuple of related objects references.
👤jsh
- [Django]-Filtering dropdown values in django admin
- [Django]-Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- [Django]-Django order_by() filter with distinct()
Source:stackexchange.com