Thursday, November 29, 2012

Re: _set.all in template should be simple, wood and trees maybe?

{% for x in list %}
     {{x.text}} <br> 
    {% for t in x.hot_topic_set.all %}
        {{ t.topic }} <br>
    {% endfor %}
    
{% endfor %}

try only erase the if tag work for me !!

On Thu, Nov 29, 2012 at 9:17 AM, MikeKJ <mike.jones@paston.co.uk> wrote:
Good question, I have attempted to shell the problem out and no I dont get a dataset returned, I should do as NewsLetter is foreignkeyed to Hot_Topic and Hot_Topic_Inline is an inlines to NewsLetterAdmin so the models are definately related

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/9Dd5Ea1WMYwJ.

To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment