Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
ba1feb5f
Commit
ba1feb5f
authored
7 years ago
by
Dan Braghis
Browse files
Options
Downloads
Patches
Plain Diff
Change to include all admin/staff + assigned reviwers
parent
820d9ec3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/funds/tables.py
+3
-2
3 additions, 2 deletions
opentech/apply/funds/tables.py
with
3 additions
and
2 deletions
opentech/apply/funds/tables.py
+
3
−
2
View file @
ba1feb5f
from
django
import
forms
from
django
import
forms
from
django.contrib.auth
import
get_user_model
from
django.contrib.auth
import
get_user_model
from
django.db.models
import
Q
from
django.utils.text
import
mark_safe
from
django.utils.text
import
mark_safe
import
django_filters
as
filters
import
django_filters
as
filters
...
@@ -78,9 +79,9 @@ def get_round_leads(request):
...
@@ -78,9 +79,9 @@ def get_round_leads(request):
def
get_reviewers
(
request
):
def
get_reviewers
(
request
):
"""
All
users that have left a review
"""
"""
All
assigned reviewers, staff or admin
"""
User
=
get_user_model
()
User
=
get_user_model
()
return
User
.
objects
.
filter
(
review__isnull
=
False
).
distinct
()
return
User
.
objects
.
filter
(
Q
(
submissions_
review
er
__isnull
=
False
)
|
Q
(
groups__name
=
'
Staff
'
)
|
Q
(
is_superuser
=
True
))
.
distinct
()
class
Select2CheckboxWidgetMixin
(
filters
.
Filter
):
class
Select2CheckboxWidgetMixin
(
filters
.
Filter
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment