On Mon, Sep 6, 2010 at 11:21 PM, Shamail Tayyab <[email protected]> wrote: >> Each topic has *multiple* sections - that's the whole point of a >> ManyToMany relationship. >> >> You can iterate through the sections for each topic: >> >> for topic in topics: >> for section in topic.sections.all(): >> print section.name >> > > > AttributeError at /index > > 'Topic' object has no attribute 'sections' > > -- > Shamail Tayyab > Blog: http://shamail.in/blog >
Hi Daniel, :-) Its topic.sections.all() Thanks! -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

