On 7/20/06, markguy <[EMAIL PROTECTED]> wrote: > > I'm not sure I understand. Would the template have it's ingredient info > when it gets to the template? I'm off to mess about with this now, but > I don't see...
If your LabelIngredient model has an attribute 'ingredient' (which is a ForeignKey), and Ingredient model has an attribute 'name' (or title/description or whatever) then you should be able to use what you had: labelingredients = LabelIngredients.objects.filter( baked_good = self.id ).order_by( 'order' ) In the template, you iterate over labelingredients and refer to labelingredients.ingredient.name {% for labelingredient in labelingredients %} {{ labelingredient.ingredient.name }} I think that'll work- I'm having a pause with Django development for the moment... -- Derek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---