Commit 62d23d27 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

DistinctMixin

parent d4af4bc9
......@@ -79,7 +79,12 @@ class ProjectContributorsView(ProjectTableView):
return self.object.contributors()
class ContributorsView(SingleTableMixin, FilterView):
class DistinctMixin(object):
def get_queryset(self):
return super().get_queryset().distinct()
class ContributorsView(SingleTableMixin, DistinctMixin, FilterView):
model = models.Contributor
table_class = tables.ContributorProjectTable
filterset_class = filters.ContributorFilter
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