Commits

cur...@tinbrain.net  committed 863a63f

Fixed username lookup

  • Participants
  • Parent commits 9a1d27c

Comments (0)

Files changed (1)

File gnocchi_blog/views.py

     def get_queryset(self):
         qset = BlogPost.objects.current()
         if self.username:
-            qset = qset.filter(user__username=self.username)
+            qset = qset.filter(posted_by__username=self.username)
         tags = self.request.GET.getlist('tags')
         if tags:
             qset = qset.filter(tags__in=tags)