Perfect, thanks
On Thursday, November 29, 2012 3:48:41 PM UTC, ke1g wrote:
>
> You have specified related_name to the foreign key in HotTopic. Try
> either taking that out, or using newsletter_instance.letter_set.all .
>
--
You received this message because you are subscribed to the Google
You have specified related_name to the foreign key in HotTopic. Try either
taking that out, or using newsletter_instance.letter_set.all .
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
{% for x in list %}
{{x.text}}
{% for t in x.hot_topic_set.all %}
{{ t.topic }}
{% endfor %}
{% endfor %}
try only erase the if tag work for me !!
On Thu, Nov 29, 2012 at 9:17 AM, MikeKJ wrote:
> Good question, I have attempted to shell the
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
I dont get the hot_topic_set.all from the newsletter instance x and I
really don't see why can anyone else please?
model:
class NewsLetter(models.Model):
title = models.CharField(max_length=200)
text = models.TextField(null=True, blank=True)
document =
5 matches
Mail list logo