Permalink
Browse files

fixed error when having multi lingual blog entries.

  • Loading branch information...
1 parent 914a17a commit 7d7818ec9f9d142acf6c0698546be16a04f57cb4 @hpoul committed Apr 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_blog/urls.py
View
@@ -79,7 +79,7 @@ def blog_archive_tagged(request, **kwargs):
def blog_archive_author(request, **kwargs):
author = kwargs.pop('author')
- kwargs['queryset'] = kwargs['queryset'].published().filter(entrytitle__author__username=author)
+ kwargs['queryset'] = kwargs['queryset'].published().filter(entrytitle__author__username=author).distinct()
kwargs['extra_context'] = {
'author': author,
}

0 comments on commit 7d7818e

Please sign in to comment.