title: Type error at ... 'myModel' object is not iterable
body: <pre><code>67  &lt;h2&gt;Latest Posts&lt;/h2&gt;
  68  
  69  &lt;ul&gt;
  70      {% for post in posts %}
  71              &lt;li&gt;&lt;a href="{{ post.get_absolute_url }}"&gt;{{post.title}}&lt;/a&gt;&lt;/li&gt;
  72      {% endfor %}
  73  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>this is my base template and when i click a post,getting an error at line 70:</strong></p>
  
  <pre><code>TypeError at /blog/posts/indiana-was-dogs-name/
  'Blog' object is not iterable
  </code></pre>
  
  <p><strong>my blog models:</strong></p>
  
  <pre><code>class Blog(models.Model):
      title = models.CharField(max_length=100, unique=True)
      slug = models.SlugField(max_length=100, unique=True)
      body = models.TextField()
      posted = models.DateField(db_index=True, auto_now_add=True)
      category = models.ManyToManyField(Category)
  
  
      def __unicode__(self):
          return self.title
  
      def get_absolute_url(self):
          return "/blog/posts/%s/" % self.slug
  </code></pre>
  
  <p><strong>my index view:</strong></p>
  
  <p>def index(request):</p>
  
  <pre><code>    variables = RequestContext(request, {
                                           'categories': Category.objects.all(),
                                           'posts': Blog.objects.filter(posted__lte=datetime.now()).order_by('-posted', 'title')
                                          })
      return render_to_response('index.html',variables)
  </code></pre>
  
  <p><strong>there are a few posts about error like this but not including my problem</strong>    </p>