On Jul 2, 10:25 am, The Danny Bos <[email protected]> wrote:
> DR.
> Bingo!!
>
> Thanks man,
> And thanks for the tip on "_set" being for ForeignKeys.
>
> d
>
> On Jul 3, 12:23 am, Daniel Roseman <[email protected]> wrote:
>
> > On Jul 2, 3:20 pm, The Danny Bos <[email protected]> wrote:> Daniel,
>
> > > {% for author in review.item.author_set.all %}
> > > Is what I've been using.
>
> > Aargh, copy and paste fail. Should have been
> > {% for author in review.item.authors.all %}
> > --
> > DR.
Curiosity...
Is there any reason your FK to books is called 'item,' and not, well,
'book'? It would be considerably clearer if that were the case. It's
kind of a standard practice for naming FKs for basic usage:
{% for author in review.book.authors.all %}
Wayne
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---