Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
62d23d27
Commit
62d23d27
authored
Feb 16, 2018
by
Guilhem Saurel
Browse files
DistinctMixin
parent
d4af4bc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
rainboard/views.py
View file @
62d23d27
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment