Hi guys, I'm new in Django and don't know how to get related objects with
multiple models.
If anyone can help me with this, I'd appreciate.
Here is the question in
stackoverflow:
http://stackoverflow.com/questions/26451588/django-get-related-with-multiple-models
My code:
#models.pyclass C
*This question is also in
http://stackoverflow.com/questions/26635406/django-query-in-detailview
I have DetailVIew wich returns a list of related objects (m2m throught). It
works just fine!
But I need to search for objects'names and it is returning all objects
instead of only the related ones.