Commits

Stephen McDonald  committed d0e9bc2

Fixed loading of blog posts for a tag.

  • Participants
  • Parent commits 42ffc9a

Comments (0)

Files changed (1)

File mezzanine/blog/views.py

     blog_posts = BlogPost.objects.published(for_user=request.user)
     if tag is not None:
         tag = get_object_or_404(Keyword, slug=tag)
-        blog_posts = blog_posts.filter(keywords=tag)
+        blog_posts = blog_posts.filter(keywords__in=tag.assignments.all())
     if year is not None:
         blog_posts = blog_posts.filter(publish_date__year=year)
         if month is not None: