Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c894c76d
authored
8 years ago
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: small fix in FilterMixin
parent
868c2ca6
Pipeline
#211
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
circle/dashboard/views/util.py
+3
-3
No files found.
circle/dashboard/views/util.py
View file @
c894c76d
...
...
@@ -173,11 +173,11 @@ class FilterMixin(object):
pk_list
=
[]
for
record
in
queryset
:
sum
=
record
.
object_level_set
.
annotate
(
count
=
record
.
object_level_set
.
annotate
(
Count
(
'users'
),
Count
(
'groups'
))
.
aggregate
(
Sum
(
'users__count'
),
Sum
(
'groups__count'
))
if
(
sum
[
'users__count__sum'
]
>
1
or
sum
[
'groups__count__sum'
]
>
0
):
if
(
count
[
'users__count__sum'
]
>
1
or
count
[
'groups__count__sum'
]
>
0
):
pk_list
.
append
(
record
.
pk
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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