Re: ManyRelatedManager object in templates

2006-11-29 Thread Russell Keith-Magee
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

Re: ManyRelatedManager object in templates

2006-11-29 Thread conrad22
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

Re: ManyRelatedManager object in templates

2006-11-29 Thread conrad22
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? --~--~-~--~~~---~--~~