On 11/29/06, conrad22 <[EMAIL PROTECTED]> wrote:
> eg. I have the following error appearing, instead of the object:
>
> django.db.models.fields.related.ManyRelatedManager object
What you're missing is the 'all()' at the end.
Your example is a little confusing - the model Category should have an
ie what is the simplest way to call the categories that have been
selected for each organisation ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
Ah ha! I've had a thought..could I use a custom Manager to predefine
the query and then call in the template? In which case, how would a
write a query set for the manager that only returns those categories
that an organisation has selected?
--~--~-~--~~~---~--~~
Hi
I have two models, A and B, with B having an M2M relationship to A.
What is the best way to access/list the 'joined' data in a Django
template? Would it be best to define the potential joint data in the
_str_ as well?
eg. I have the following error appearing, instead of the object:
django.db.
4 matches
Mail list logo