diff --git a/profiles/models.py b/profiles/models.py index 711eeb20d88b37eeb95e00dbb672506298db890f..93da3c30ebafd65a0c8367848581e800581c4c27 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -141,7 +141,7 @@ def get_profiles(slug): if tbl.unregistered_author is not None] return Profile.objects.filter(models.Q(contributor__id__in=cont_id_list) | models.Q(unregisteredauthor__id__in=unreg_id_list - )).annotate(count=models.Count('id')).distinct().order_by('-count') + )).distinct() class ProfileNonDuplicates(models.Model):