Commit d826b74a authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Fix project list queryset

parent ae0e7529
......@@ -1123,7 +1123,7 @@ class ProjectApplicationManager(ForUpdateManager):
Return projects accessed by specified user.
"""
return self.filter(Q(owner=user) | Q(applicant=user) | \
Q(project__projectmembership__person=user)).distinct()
Q(project__projectmembership__person=user)).order_by('pk').distinct()
def search_by_name(self, *search_strings):
q = Q()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment